Example #1
0
    // Use this for initialization
    void Start()
    {
        ui         = GameObject.Find("Global").GetComponent <b_UI>();
        camCtrl    = GameObject.Find("Camera").GetComponent <b_CameraControl>();
        monster    = GameObject.Find("monster01");
        monsterDes = new Vector3(0, 83.24539f, 0);

        explosionTime = 0.0f;
        defenseTime   = 0.0f;

        HP_player_max = 100;
        HP_enemy_max  = 100;
        HP_player_now = 0;
        HP_enemy_now  = 0;
        ATK_player    = 100;
        ATK_enemy     = 45;
        HP_initial();
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        canvas          = GameObject.Find("Canvas").GetComponent <Canvas>();
        wordDisplay     = GameObject.Find("Displayer").GetComponent <WordDisplay>();
        backWordDisplay = GameObject.Find("BackDisplayer").GetComponent <WordDisplay>();
        showE           = 0.0f;

        isGameOver = false;

        // load words
        LoadWords();

        camCtrl = GameObject.Find("Camera").GetComponent <b_CameraControl>();
        battle  = GameObject.Find("Camera").GetComponent <b_BattleSystem>();

        chooseWordPos = new Vector2[4];
        // initial
        Initial();
        battle.monster.transform.position = new Vector3(0, 83.24539f, 0);

        levelNum = 5;
        levelNow = 1;
    }