void Awake() { player = GetComponent <PhysicsController>(); animator = GetComponent <Animator>(); mouseAnim = GetComponent <CannonLookAtMouse>(); pickupObject = GetComponent <PlayerPickupObject>(); }
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 DropAction(PlayerPickupObject _pickupObject) { pickupObject = _pickupObject; }