Ejemplo n.º 1
0
 void Start()
 {
     if (Neutron.IsServer(gameObject))
     {
         Destroy(this);
     }
     //==============================================//
     GetRigidbody = GetComponent <Rigidbody>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     if (Neutron.IsServer(gameObject))
     {
         Destroy(this);
     }
     //==============================================//
     GetAnimator = GetComponent <Animator>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     agent = GetComponent <NavMeshAgent>();
     //==============================================//
     if (Application.isEditor)
     {
         agent.radius = 0.01f;
     }
     //==============================================//
     agent.gameObject.GetComponent <Rigidbody>().isKinematic = true;
     //==============================================//
     if (Neutron.IsServer(gameObject))
     {
         Destroy(this);
     }
 }