這裏是我的分數經理劇本我做:得分乘法器時間
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class ScoreManager : MonoBehaviour {
public Text scoreText;
public float scoreCount; // What the score is when the scene first loads. I set this as zero.
public float pointsPerSecond; // Every second, the points increase by THIS amount. Right now it is 100.
// Update is called once per frame
void Update() {
scoreCount += pointsPerSecond * Time.deltaTime;
scoreText.text = "" + Mathf.Round (scoreCount); // It comes out as a float with like 6 decimals; I round to an nice, clean Integer
}
}
我,我無法弄清楚如何解決的問題是:我如何作出這樣的30後乘以兩三次比分事半功倍然後將分數乘以1分鐘後的三次,然後在1分鐘和30秒後乘以四次,然後在2分鐘後乘以五次?謝謝:)