void Start() { if (Neutron.IsServer(gameObject)) { Destroy(this); } //==============================================// GetRigidbody = GetComponent <Rigidbody>(); }
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); } }