Пример #1
0
    void ComponentStart()
    {
        controller = GetComponent <ThirdPersonController>();
        int     uid = Player.Instance.Uid;
        Vector2 pos = Player.Instance.Pos;

        mainPlayer = ThirdPersonManager.Instance.CreateCharacter(uid, pos);
        controller.Attach(mainPlayer);
        Debug.Log("GameScene MainPlayer:" + pos);
    }