private void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(_instance); } }
public override void Start() { base.Start(); _clear = GameObject.Find("GameClear"); _over = GameObject.Find("Gameover"); _start = GameObject.Find("GameStart"); _clear.SetActive(false); _over.SetActive(false); factory = FindObjectOfType <FactoryMethodUse>(); KillCount = 0; Stage_num = 1; Time.timeScale = 0; }