// Use this for initialization void Start() { //クラスを変数の中にいれる(親クラスからの参照) roll = transform.parent.GetComponent <ChangeUILookOver>(); Item = transform.parent.GetComponent <ChangeUIItemAction>(); back = transform.parent.GetComponent <ChangUIBackBehaviorSelection>(); }
// Use this for initialization void Start() { //クラスを変数の中に入れる(親クラスからの参照) roll = transform.parent.GetComponent <ChangeUIDiceRoll>(); back = transform.parent.GetComponent <ChangUIBackBehaviorSelection>(); Dice = transform.parent.GetComponent <ChangeUIPlayerBehaviorSelectionDice>(); Item = transform.parent.GetComponent <ChangeUIPlayerBehaviorSelectionItem>(); }