// Start is called before the first frame update void Start() { btn = this.GetComponent <Button>(); gmg = (GameManagerGame)GameManager.instance; btn.onClick.AddListener(click); }
private void setSingularity() { if (SS == null) { SS = this; } else if (SS != this) { Destroy(gameObject); } }
// Start is called before the first frame update void Awake() { RemovedPlayer.Clear(); currentPlayerIndex = 0; if (Instance == null) { Instance = this; } else { Destroy(this.gameObject); } }