private void Awake() { Instance = this; partyBoxObject = Instantiate(partyBoxPrefab, partyBoxPosition.transform.position, Quaternion.identity, transform); buttonLeft.onClick.AddListener(OnClickButtonLeft); buttonRight.onClick.AddListener(OnClickButtonRight); }
private void OnDestroy() { Instance = null; }