Ejemplo n.º 1
0
        /**
         * <summary>Moves the NPC out of the view by basically teleporting them very far away.</summary>
         * <param name = "player">The Player they are moving out of the way for. This is only used to provide a log in the Console</param>
         */
        public void HideFromView(Player player = null)
        {
            Halt();
            Teleport(transform.position + new Vector3(100f, -100f, 100f));

            if (player != null)
            {
                ACDebug.Log("NPC '" + GetName() + "' was moved out of the way to make way for the associated Player '" + player.GetName() + "'.", this);
            }
        }