Ejemplo n.º 1
0
 void Awake()
 {
     if (instance)
     {
         Destroy(this);
     }
     else
     {
         instance = this;
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     splitInstance = SplitMain.instance;
     btn           = gameObject.GetComponent <Button>();
     btn.onClick.AddListener(delegate { onClickButtonHandler(); });
 }