This commit is contained in:
Nim-XD
2024-11-10 23:39:20 +05:30
parent 886be5e736
commit 22b23a26e2
50 changed files with 35191 additions and 835 deletions

View File

@@ -79,7 +79,7 @@ public class PlayerAttack : NetworkBehaviour{
Vector3 direction = GetPlayerLookDir();
//if(isServer){
pnet.MagicalAttack(direction, magicalProjectileSpawnOffset, damage);
pnet.MagicalAttack(direction, magicalProjectileSpawnOffset, damage);
/*}else{
Debug.Log(direction);
CmdMagicalAttack(direction);
@@ -91,10 +91,6 @@ public class PlayerAttack : NetworkBehaviour{
magicalAttack(direction);
}*/
Vector3 GetPlayerLookDir(){
Vector3 direction = Vector3.right;
if(leftAnim.activeSelf){