Example #1
0
 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;
 }
Example #2
0
 public MobilePlayerController(MobilePawnComponent pawn, MobileInputController input)
 {
     Init(pawn, input);
 }
Example #3
0
 public MobilePlayerController CreateController(MobilePawnComponent pawn)
 {
     return(new MobilePlayerController(pawn, InputController));
 }
Example #4
0
 protected override void SpawnGameplay()
 {
     _instancePawn       = CreatePawn();
     _instanceController = CreateController(_instancePawn);
     Cam.Init(_instancePawn.transform);
 }