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