Beispiel #1
0
        void Awake()
        {
            I = this;

            avatarButtons = ProfilesPanel.GetComponentsInChildren <ProfileSelectorAvatarButton>(true);
            maxProfiles   = avatarButtons.Length;
        }
Beispiel #2
0
 void OnDestroy()
 {
     if (I == this)
     {
         I = null;
     }
     btAddTween.Kill();
     btPlayTween.Kill();
     BtAdd.Bt.onClick.RemoveAllListeners();
     foreach (ProfileSelectorAvatarButton bt in avatarButtons)
     {
         bt.Bt.onClick.RemoveAllListeners();
     }
 }