// public Camera ngui_camera = null; // Use this for initialization void Start() { agent = GetComponent<NavMeshAgent>(); agent.updateRotation = false; animator = GetComponent<Animator>(); using(locomotion = new Locomotion(animator)){locomotion.Dispose();} particleClone = null; NGUILayerMask = LayerMask.NameToLayer("Default"); // print("NGUI layerDepth : " + NGUILayerMask); }