Example #1
0
 // 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> ();
 }
Example #2
0
    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]);
        }
    }
Example #3
0
 // 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;
     }
 }
Example #4
0
    private Vector3 pos;                                                        //
    //private bool isButton = false;

    // Use this for initialization
    void Start()
    {
        circelControl = GameObject.Find("GameRoot").GetComponent <CircelControl> ();
    }