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