Пример #1
0
 void Start()
 {
     Ability1 = TeamController.Team.Mem[0];
     Ability2 = TeamController.Team.Mem[1];
     rect     = HPBar.GetComponent <RectTransform>();
     MaxW     = rect.sizeDelta.x;
     ba       = GameConfig.Controller.GetComponent <BindAbility>();
     Reset();
 }
Пример #2
0
 private void Awake()
 {
     s = this.gameObject.GetComponent <SpriteRenderer>();
     if (character == "")
     {
         return;
     }
     walker = Resources.LoadAll <Sprite>("Walkers/" + character);
     lp     = this.transform.localPosition;
     ba     = this.GetComponent <BindAbility>();
     for (int i = 0; i < 3; i++)
     {
         S[i] = SkillManager.S.Find(m => m.Name == ba.Ability.Magics[i]);
     }
 }