Exemplo n.º 1
0
        /// <summary>
        /// Use this function to reset this enemy to it's default values except it's position.
        /// </summary>
        public void Reset()
        {
            // Base Start (Health)
            base.Start();

            // Set the Waypoint that we are nearest to right now
            if (WaypointMap != null)
            {
                currentWaypoint = WaypointMap.FindNearestWaypoint(transform.position);
            }

            // Set the default state
            changeCurrentState(new IdleState());
        }