public override void Awake() { base.Awake(); facingRight = false; _setting = new CatWolfSet(); souls = 0; anim = GetComponent<Animator>(); initPosition = transform.position.x; Destroy(gameObject, 3f); }
public override void Awake() { base.Awake(); facingRight = false; _setting = new CatWolfSet(); setting = (CatWolfSet)_setting; addSkill("alert", alert); addSkill("maul", maul); addSkill("pounce", pounce); addSkill("summonFriends", summonFriends, setting.summonFriendsInitCD); addSkill("crouch", crouch); anim = GetComponent<Animator>(); ai = new CatWolfAI(this); setHPBar(setting.hpBarOffset, setting.hp); }