public void BacktoTitle() { Firstspawn.Reset(); BattleInfo.Reset(); Time.timeScale = 1; SceneManager.LoadScene("Title"); }
void OnDestroy() { if (!touch) { Debug.Log("Save project " + gameObject.name); Firstspawn.Set(gameObject.name, gameObject.transform.position); } else { Debug.Log(gameObject.name + " Destroy by player"); Firstspawn.Remove(gameObject.name); } }