示例#1
0
        protected override void LocalInitialize()
        {
            if (this.anim == null)
            {
                this.anim = this.gameObject.GetComponent <Animator>();
            }

            this.rgbdy          = GetComponent <Rigidbody2D>();
            this.hero           = Managers.DungeonManager.GetHero().transform;
            this.stateMap       = new Hero.StateMap <TendrilacState>();
            this.spawnedEnemies = new List <GameObject>();
            this.idleTimer      = idleTime;
            this.moveHash       = Animator.StringToHash("Moving");
            this.attackHash     = Animator.StringToHash("Attack");
        }
示例#2
0
        protected override void LocalInitialize()
        {
            if (this.anim == null)
            {
                this.anim = this.gameObject.GetComponent <Animator>();
            }

            this.rgbdy          = GetComponent <Rigidbody2D>();
            this.stateMap       = new Hero.StateMap <ExectionerState>();
            this.hero           = Managers.DungeonManager.GetHero().transform;
            this.spawnedEnemies = new List <GameObject>();
            this.doOnce         = false;
            this.isInvulnerable = false;
            this.isVisible      = true;
            this.invunTimer     = 0;
            this.flashTimer     = 0;
            this.movingHash     = Animator.StringToHash("Moving");
            this.shieldingHash  = Animator.StringToHash("Shielding");
            this.attackHash     = Animator.StringToHash("Attack");
            this.stunOverHash   = Animator.StringToHash("StunOver");
        }