Exemple #1
0
 void Start()
 {
     flashRed     = GetComponent <FlashUsingMaterial>();
     animator     = GetComponent <Animator>();
     audioManager = GetComponent <SlugAudioManager>();
     brain        = GetComponent <MummyBrain>();
 }
Exemple #2
0
 void Awake()
 {
     anim         = GetComponent <Animator>();
     timeUtils    = GetComponent <TimeUtils>();
     flashRed     = GetComponent <FlashUsingMaterial>();
     audioManager = GetComponentInChildren <SlugAudioManager>();
 }
    void Awake()
    {
        gunAnimController = topBodyAnimator.runtimeAnimatorController;
        MeleeAttack       = GetComponentInChildren <AttackKnife>();
        FireArmAttacks    = GetComponentsInChildren <IAttack>(true);
        grenadeAttack     = GetComponent <MarcoAttackGrenade>();
        movementManager   = GetComponentInParent <MovementManager>();
        flashBlue         = GetComponent <FlashUsingMaterial>();

        currentFireArmAttack = FireArmAttacks[1];
    }
Exemple #4
0
 void Awake()
 {
     animator              = GetComponent <Animator>();
     timeUtils             = GetComponent <TimeUtils>();
     flashRed              = GetComponent <FlashUsingMaterial>();
     colliderWhenIntact    = GetComponent <Collider2D>();
     colliderWhenDestroyed = GetComponent <EdgeCollider2D>();
     collectible           = GetComponentInChildren <CollectibleDef>(true);
     healthManager         = GetComponent <HealthManager>();
     berserkerPool         = GetComponentInChildren <ObjectPoolScript>();
     berserkersOnTheRoof   = new Berserker[3];
 }
Exemple #5
0
 void Awake()
 {
     inputManager    = GetComponent <InputManager>();
     animManager     = GetComponent <AnimationManager>();
     blink           = GetComponent <Blink>();
     physic          = GetComponent <SlugPhysics>();
     movementManager = GetComponent <MovementManager>();
     health          = GetComponent <HealthManager>();
     timeUtils       = GetComponent <TimeUtils>();
     spriteRenderers = GetComponentsInChildren <SpriteRenderer>();
     flashBright     = GetComponent <FlashUsingMaterial>();
     playerIndicator = GetComponentInChildren <FlipPlayerIndicator>();
     playerIndicator.gameObject.SetActive(false);
 }
Exemple #6
0
 void Awake()
 {
     flash = GetComponent <FlashUsingMaterial>();
 }
Exemple #7
0
 void Awake()
 {
     flash    = GetComponent <FlashUsingMaterial>();
     animator = GetComponent <Animator>();
 }