Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (skill == null)
     {
         skill = this.GetComponentInParent <OneHitSkill>();
     }
 }
Пример #2
0
 public void Init(int attack, ElementType type, OneHitSkill iSkill = null)
 {
     attackValue = attack;
     elementType = type;
     if (iSkill != null)
     {
         skill = iSkill;
     }
 }