This commit is contained in:
parent
255f77c452
commit
62a6a29d9f
@ -217,12 +217,6 @@ public class Interactions : NetworkBehaviour
|
||||
{
|
||||
RpcReductStamina(player);
|
||||
}
|
||||
|
||||
[Command]
|
||||
void CmdHitAlien(EnemyController alien)
|
||||
{
|
||||
alien.TakeDamage();
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
void RpcReductStamina(PersonController player)
|
||||
@ -230,6 +224,18 @@ public class Interactions : NetworkBehaviour
|
||||
player.TakeDamage();
|
||||
player.InstantStaminaReduction(controller.shootDepletion * 0.7f);
|
||||
}
|
||||
|
||||
[Command]
|
||||
void CmdHitAlien(EnemyController alien)
|
||||
{
|
||||
RpcHitAlien(alien);
|
||||
}
|
||||
|
||||
[ClientRpc]
|
||||
void RpcHitAlien(EnemyController alien)
|
||||
{
|
||||
alien.TakeDamage();
|
||||
}
|
||||
|
||||
[Command]
|
||||
void CmdShoot(Vector3 pos, Quaternion rot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user