public void Init(MobilePawnComponent pawn, MobileInputController input) { _pawn = pawn; _pawn.OnDeath += PropulsionCooldown.LaForceVeloce.ResetForceVeloce; _input = input; _input.OnTouchSlowMo += PropulsionCooldown.LaForceVeloce.SlowDown; _input.OnReleaseSlowMo += PropulsionCooldown.LaForceVeloce.SlowUp; _input.OnReleaseSlowMo += FirePlayer; }
public MobilePlayerController(MobilePawnComponent pawn, MobileInputController input) { Init(pawn, input); }
public MobilePlayerController CreateController(MobilePawnComponent pawn) { return(new MobilePlayerController(pawn, InputController)); }
protected override void SpawnGameplay() { _instancePawn = CreatePawn(); _instanceController = CreateController(_instancePawn); Cam.Init(_instancePawn.transform); }