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