示例#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);
    }
示例#2
0
 /// <summary>
 /// 初期化
 /// </summary>
 public void Initialize(TRPlayArea playArea, Color color)
 {
     m_PlayArea             = playArea;
     m_SpriteRenderer.color = color;
     gameObject.SetActive(true);
 }