示例#1
0
文件: TRGame.cs 项目: shumat/Giorno
    /// <summary>
    /// 初期化
    /// </summary>
    public override void Initialize(PlayerController pc)
    {
        base.Initialize(pc);

        Player   = Instantiate(PlayerTemplate).GetComponent <TRPlayer>();
        PlayArea = Instantiate(PlayAreaTemplate).GetComponent <TRPlayArea>();
        PlayArea.transform.SetParent(GameObject.Find(Controller.isLocalPlayer ? "PlayArea" : "EnemyPlayArea").transform, false);

        Player.Initialize(this);
        PlayArea.Initialize(this);
    }