void Awake() { player = GetComponent <PhysicsController>(); animator = GetComponent <Animator>(); mouseAnim = GetComponent <CannonLookAtMouse>(); pickupObject = GetComponent <PlayerPickupObject>(); }
void Awake() { player = GetComponent <PhysicsController>(); cc = GetComponent <CharController>(); loopTracker = GetComponent <LoopTracker>(); cannon = GetComponent <CannonLookAtMouse>(); }
private void Awake() { startingPos = transform.position; LoopManager.StartReplay += StartReplay; LoopManager.ResetReplay += Reset; cannon = GetComponent <CannonLookAtMouse>(); physController = GetComponent <PhysicsController>(); }
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; }
public ShootAction(CannonLookAtMouse _cannon, Vector3 _mousePosWorld) { cannonScript = _cannon; mousePosWorld = _mousePosWorld; }
void Awake() { loopTracker = GetComponent <LoopTracker>(); cannon = GetComponent <CannonLookAtMouse>(); }