Exemple #1
0
 private void Start()
 {
     _btn            = GetComponent <Button>();
     _heroController = GetComponentInParent <HeroController>();
     if (_heroController)
     {
         APC = _heroController.GetComponentInChildren <ActionPanelController>();
     }
     BM = FindObjectOfType <BattleManager>();
     if (_heroController)
     {
         BCCostPerTime += BCCostPerLevel * _heroController.LEVEL
                          + BCCostPerSkillGrade * SkillGrade
                          + (int)(_heroController._role.CurrentExportRAL.Hp
                                  * BCCostUsingPercent * 0.01f);
     }
 }