public PlayerUIClass(GameManeger manager, GameObject p, GameObject Camvas, GameObject Camvas2) : base(manager) { _stateClass = (MainStateClass)manager.NowManager; AnimationClass = p.GetComponent <PlayerAnimation>(); Playermove = p.GetComponent <PlayerMove>(); //ここからはゲームシーンのみ使う _Effect = Camvas.transform.GetChild(1).gameObject; _Effect.SetActive(false); //HPのスライダー処理 HP_ber = Camvas2.transform.GetChild(1).GetComponent <Slider>(); HP_ber.maxValue = Playermove.GetSetHP; //範囲攻撃可能のスライダー処理 Range_ber = Camvas.transform.GetChild(4).GetComponent <Slider>(); Range_ber.maxValue = 7; log = Camvas.transform.GetChild(3).GetComponent <Text>(); }
public MainStateClass(GameManeger m, int Score) : base() { this.Score = Score; _My = this; _Manager = m; }