Exemplo n.º 1
0
        private void Awake()
        {
            Instance = this;

            partyBoxObject = Instantiate(partyBoxPrefab, partyBoxPosition.transform.position, Quaternion.identity, transform);
            buttonLeft.onClick.AddListener(OnClickButtonLeft);
            buttonRight.onClick.AddListener(OnClickButtonRight);
        }
Exemplo n.º 2
0
 private void OnDestroy()
 {
     Instance = null;
 }