Example #1
0
 // Use this for initialization
 void Start()
 {
     if (Instance == null)
     {
         Instance       = this;
         activCard      = FindObjectOfType <ActivCardMoving>();
         chameleonPanel = FindObjectOfType <ChameleonPanel>();
         LoadInfo();
         CreatePoll();
     }
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     activCard = FindObjectOfType <ActivCardMoving>();
     myCard    = transform.GetComponentInChildren <Card>();
     myButton  = GetComponent <Button>();
     myButton.onClick.AddListener(ActivateBonus);
     if (LoadManager.Instance.needLoad)
     {
         string saveBonus = PlayerPrefs.GetString(name);
         if (!string.IsNullOrEmpty(saveBonus))
         {
             eSpecialCard saveSpecialCard = (eSpecialCard)Enum.Parse(typeof(eSpecialCard), saveBonus);
             InitSlot(saveSpecialCard);
         }
     }
 }