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