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