public override void Fire2(bool value) { PWPawn CP = (PWPawn)PossesedPawn; if (CP) { CP.Fire2(value); } }
public override void Horizontal(float value) { PWPawn CP = (PWPawn)PossesedPawn; if (CP) { CP.Horizontal(value); } }
public override void Vertical(bool value) { PWPawn PWP = ((PWPawn)PossesedPawn); if (PWP) { PWP.Vertical(value); } }
public override void Vertical(float value) { PWPawn CP = (PWPawn)PossesedPawn; if (CP) { CP.Vertical(value); } }
public override void Horizontal(float value) { PWPawn PWP = ((PWPawn)PossesedPawn); if (PWP) { PWP.Horizontal(value); } }
public override void Vertical(float value) { //LOG(GetPossesedPawn().ToString()); PWPawn CP = (PWPawn)PossesedPawn; if (CP) { CP.Vertical(value); } }
public override void Fire1(bool value) { if (value) { //doing this in two lines PWPawn p = (PWPawn)PossesedPawn; p.Fire1(value); // doing this in one line. // ((PWPawn)PossesedPawn).Fire1(value); } }
public override void Interact(bool value) { if (value) { LOG("PC: Interact"); PWPawn PWP = ((PWPawn)PossesedPawn); if (PWP) { PWP.Interact(value); } } }
public override void Fire2(bool value) { if (value) { LOG("PC: Fire2"); PWPawn PWP = ((PWPawn)PossesedPawn); if (PWP) { PWP.Fire2(value); } } }
protected override void UpdateHUD() { if (!HUD && !PossesedPawn) { if (!IgnoreHudError) { LOG_ERROR("No Hud or Pawn!"); } return; } PWHUD hud = HUD.GetComponent <PWHUD>(); if (!hud) { if (!IgnoreHudError) { LOG_ERROR("No Hud Class found"); } return; } PWPawn pawn = (PWPawn)PossesedPawn; if (!pawn) { if (!IgnoreHudError) { LOG_ERROR("Controller doesn't have a PWPawn"); } return; } if (PossesedPawn.IsSpectator) { hud.ActivePanel.SetActive(false); hud.SpectatePanel.SetActive(true); hud.PlayerNumber = (this.InputPlayerNumber + 1); hud.SpawnName = SpawnPreFab.name; } else { hud.ActivePanel.SetActive(true); hud.SpectatePanel.SetActive(false); hud.PlayerNumber = (this.InputPlayerNumber + 1); hud.Healths = (int)pawn.Health; hud.Lives = (int)pawn.Life; } }
protected override void UpdateHUD() { if (!HUD && !PossesedPawn) { if (!IgnoreHudError) { LOG_ERROR("No Hud or Pawn!"); } return; } HUD hud = HUD.GetComponent <HUD>(); if (!hud) { if (!IgnoreHudError) { LOG_ERROR("No Hud Class found"); } return; } PWPawn pawn = (PWPawn)PossesedPawn; if (!pawn) { if (!IgnoreHudError) { LOG_ERROR("Controller doesn't have a PWPawn"); } return; } if (PossesedPawn.IsSpectator) { } else { } }