コード例 #1
0
        private void Awake()
        {
            Instance = this;

            partyBoxObject = Instantiate(partyBoxPrefab, partyBoxPosition.transform.position, Quaternion.identity, transform);
            buttonLeft.onClick.AddListener(OnClickButtonLeft);
            buttonRight.onClick.AddListener(OnClickButtonRight);
        }
コード例 #2
0
 private void OnDestroy()
 {
     Instance = null;
 }