Example #1
0
 // When player leaves, prevent it from changing the turret position
 public override void Unfocus(PlayerStateController player)
 {
     turretInput = null;
 }
Example #2
0
 void Start()
 {
     parentClient = GetComponentInParent <TankMovement>();
     input        = GetComponent <TurretInput>();
     aimTo        = transform.forward;
 }
Example #3
0
 // Allow turret to be operated when focused
 public override void Focus(PlayerStateController player)
 {
     turretInput = player.GetComponent <TurretInput>();
 }