コード例 #1
0
    public override void Awake()
    {
        base.Awake();
        facingRight = false;
        _setting = new CatWolfSet();
        souls = 0;

        anim = GetComponent<Animator>();
        initPosition = transform.position.x;
        Destroy(gameObject, 3f);
    }
コード例 #2
0
ファイル: CatWolf.cs プロジェクト: HetongWang/dark-conqueror
    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);
    }