// Start is called before the first frame update
    void Start()
    {
        btn = this.GetComponent <Button>();
        gmg = (GameManagerGame)GameManager.instance;


        btn.onClick.AddListener(click);
    }
Пример #2
0
 private void setSingularity()
 {
     if (SS == null)
     {
         SS = this;
     }
     else if (SS != this)
     {
         Destroy(gameObject);
     }
 }
Пример #3
0
 // Start is called before the first frame update
 void Awake()
 {
     RemovedPlayer.Clear();
     currentPlayerIndex = 0;
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
 }