Пример #1
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]);
        }
    }
Пример #2
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;
     }
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     p_HP_slider.maxValue = p_HP;
     p_HP_slider.value    = p_HP;
     p_MP_slider.maxValue = p_MP;
     p_MP_slider.value    = p_MP;
     if (LoadLevel.Instance != null)
     {
         LoadLevel.Instance.LoadStatus();
     }
     nowMP       = p_MP;
     naviControl = GameObject.Find("GameRoot").GetComponent <NaviControl> ();
     naviControl.ShowNavi("ゲーム開始", 3, "");
     StartCoroutine(CheckMP());
 }
Пример #4
0
 // Use this for initialization
 void Start()
 {
     naviControl = GameObject.Find("GameRoot").GetComponent <NaviControl>();
     naviControl.ShowNavi(this.gameObject.name, 3, "");
 }
 // Use this for initialization
 void Start()
 {
     playerStatus  = GameObject.Find("Player").GetComponent <PlayerStatus> ();
     monsterStatus = this.transform.parent.gameObject.GetComponent <MonsterStatus> ();
     naviControl   = GameObject.Find("GameRoot").GetComponent <NaviControl>();
 }