Ejemplo n.º 1
0
    IEnumerator CreateRolePhysics(PlayerBase player, RoleCreate roleCreate)
    {
        if (player != null)
        {
            IEnumerator itor = player.CreatePhysics(false, PhysicsType.Player);
            while (itor.MoveNext())
            {
                yield return(null);
            }

            player.CreateUIRoleCamera(roleCreate.m_ShowRectTL.position, roleCreate.m_ShowRectBR.position, m_ShowCamera, roleCreate.m_Layer);


            player.CurrentStyle = PlayerStyleType.Create;
        }
    }