Пример #1
0
 void Awake()
 {
     player       = GetComponent <PhysicsController>();
     animator     = GetComponent <Animator>();
     mouseAnim    = GetComponent <CannonLookAtMouse>();
     pickupObject = GetComponent <PlayerPickupObject>();
 }
Пример #2
0
 void Awake()
 {
     player      = GetComponent <PhysicsController>();
     cc          = GetComponent <CharController>();
     loopTracker = GetComponent <LoopTracker>();
     cannon      = GetComponent <CannonLookAtMouse>();
 }
Пример #3
0
    private void Awake()
    {
        startingPos = transform.position;

        LoopManager.StartReplay += StartReplay;
        LoopManager.ResetReplay += Reset;

        cannon         = GetComponent <CannonLookAtMouse>();
        physController = GetComponent <PhysicsController>();
    }
Пример #4
0
    private void Awake()
    {
        source          = GetComponent <AudioSource>();
        loopTracker     = GetComponent <LoopTracker>();
        spriteRenderers = GetComponentsInChildren <SpriteRenderer>();
        animator        = GetComponent <Animator>();
        collider        = GetComponent <Collider2D>();
        pickupObject    = GetComponent <PlayerPickupObject>();
        input           = GetComponent <PlayerInput>();
        cannon          = GetComponent <CannonLookAtMouse>();

        LoopManager.ResetReplay += ResetPlayer;
    }
Пример #5
0
 public ShootAction(CannonLookAtMouse _cannon, Vector3 _mousePosWorld)
 {
     cannonScript  = _cannon;
     mousePosWorld = _mousePosWorld;
 }
Пример #6
0
 void Awake()
 {
     loopTracker = GetComponent <LoopTracker>();
     cannon      = GetComponent <CannonLookAtMouse>();
 }