void Start() { Instance = this; GameOverTitle.SetActive(false); //不顯示 RestartButton.SetActive(false); //不顯示 }
void Start() { Instance = this; LoseText.SetActive(false); }
public static gamefunction Instance; // 設定Instance,讓其他程式能讀取GameFunction裡的東西 void Start() { Instance = this; //指定Instance這個程式 }