コード例 #1
0
 protected override void Start()
 {
     base.Start();
     health   = GetComponent <BaddieHealth>();
     anim     = GetComponent <Animator>();
     movement = GetComponent <CharacterHorizontalMovement>();
 }
コード例 #2
0
        private void Start()
        {
            _shieldHealth = GetComponent <BaddieHealth>();
            anim          = GetComponent <Animator>();
            _autoRespawn  = GetComponent <AutoRespawn>();

            respawnTime = _autoRespawn.AutoRespawnDuration;
        }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     _collider               = GetComponentInParent <BoxCollider2D>();
     _anim                   = GetComponentInParent <Animator>();
     _characterShoot         = GetComponentInParent <CharacterHandleWeapon>();
     _robeCharacter          = GetComponentInParent <Character>();
     _baddieHealth           = GetComponentInParent <BaddieHealth>();
     _characterShoot.enabled = false;
     currentPoint            = pos2.position;
 }
コード例 #4
0
        private void Start()
        {
            b1Health = BuggyOne.GetComponent <BaddieHealth>();
            b2Health = BuggyTwo.GetComponent <BaddieHealth>();
            b3Health = BuggyThree.GetComponent <BaddieHealth>();
            b4Health = BuggyFour.GetComponent <BaddieHealth>();

            b1Respawn = BuggyOne.GetComponent <AutoRespawn>();
            b2Respawn = BuggyTwo.GetComponent <AutoRespawn>();
            b3Respawn = BuggyThree.GetComponent <AutoRespawn>();
            b4Respawn = BuggyFour.GetComponent <AutoRespawn>();

            b1BuggyFly = BuggyOne.GetComponent <AIDecisionBuggyFly>();
            b2BuggyFly = BuggyTwo.GetComponent <AIDecisionBuggyFly>();
            b3BuggyFly = BuggyThree.GetComponent <AIDecisionBuggyFly>();
            b4BuggyFly = BuggyFour.GetComponent <AIDecisionBuggyFly>();
        }