// Use this for initialization void Start() { if (this.GetComponent <AudioSource>().isPlaying) { this.GetComponent <AudioSource>().Stop(); } circelControl = GameObject.Find("GameRoot").GetComponent <CircelControl> (); mahouCollider = this.GetComponentInChildren <Collider> (); }
private float cost; //魔法を使う必要なMP // Use this for initialization void Start() { circelControl = GameObject.Find("GameRoot").GetComponent <CircelControl> (); naviControl = GameObject.Find("GameRoot").GetComponent <NaviControl>(); playerStatus = GameObject.Find("Player").GetComponent <PlayerStatus> (); for (int i = 0; i < mages.Length; i++) { mages[i].GetComponent <MageLevelControl>().LoadLevelData(mages[i]); } }
// Use this for initialization void Start() { btn = this.GetComponent <Button> (); naviControl = GameObject.Find("GameRoot").GetComponent <NaviControl>(); circleControl = GameObject.Find("GameRoot").GetComponent <CircelControl>(); if (mage.GetComponent <Mage>().level == 0) { btn.interactable = false; } }
private Vector3 pos; // //private bool isButton = false; // Use this for initialization void Start() { circelControl = GameObject.Find("GameRoot").GetComponent <CircelControl> (); }