示例#1
0
        /// <summary>
        /// Set the position/facing of the player to the desired values
        /// </summary>
        public virtual void PositionCharacter(Character p)
        {
            p.velocity = Vector3.zero;
            if (facing != Facing.None)
            {
                p.SetFacing(facing);
            }
            Vector3 pos = p.transform.position;

            pos.x = GetCenter().x + offset.x;
            p.transform.position = pos;
        }