public void MoveTo(MoveToNode a_node)
        {
            // Ensure parameters are valid,
            // and only execute if this object is active
            if (a_node == null &&
                this.isActiveAndEnabled)
            {
                Debug.LogWarning(string.Format("({0}) MoveTo() called with a null Transform", this.name));
            }

            _moveToTransform = a_node.transform;
        }
Exemple #2
0
        public void MoveTo(MoveToNode a_node)
        {
            // Ensure parameters are valid,
            // and only execute if this object is active
            if (a_node == null &&
                this.isActiveAndEnabled)
            {
                Debug.LogWarning(string.Format("({0}) MoveTo() called with a null Transform", this.name));
            }

            _moveToTransform = a_node.transform;
        }