tanks example namespaces updated

This commit is contained in:
vis2k 2019-03-22 13:29:24 +01:00
parent c5b4211ac7
commit 227b0a71d1
2 changed files with 30 additions and 28 deletions

View File

@ -1,8 +1,9 @@
using UnityEngine;
using Mirror;
public class Projectile : NetworkBehaviour
namespace Mirror.Examples.Tanks
{
public class Projectile : NetworkBehaviour
{
public float destroyAfter = 5;
public Rigidbody rigidBody;
public float force = 1000;
@ -33,4 +34,5 @@ void OnTriggerEnter(Collider co)
{
NetworkServer.Destroy(gameObject);
}
}
}

View File

@ -1,7 +1,7 @@
using UnityEngine;
using UnityEngine.AI;
namespace Mirror.Examples.Movement
namespace Mirror.Examples.Tanks
{
public class Tank : NetworkBehaviour
{