Exemple #1
0
 //set player hp gauge
 public void setPlayerHpGauge(int initHp, int hp)
 {
     if (dsc == null)
     {
         //display controller
         displayCtr = GameObject.Find("btl_displayController");
         dsc        = displayCtr.GetComponent <btl_displayController> ();
     }
     dsc.setPlayerHpGauge(initHp, hp);
 }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        //system init
        intervalCnt = 0;

        //cash
        //camera controller
        cameraCtr = Camera.main.GetComponent <btl_cameraController>();

        //display controller
        displayCtr = GameObject.Find("btl_displayController");
        dsc        = displayCtr.GetComponent <btl_displayController> ();

        //scene controller
        sceneCtr = GameObject.Find("btl_sceneController");
        scn      = sceneCtr.GetComponent <cmn_sceneController> ();

        //screen controller
        screenCtr = GameObject.Find("btl_screenController");
        scr       = screenCtr.GetComponent <cmn_screenController> ();

        //stage controller
        stageCtr = GameObject.Find("btl_stageController");
        stc      = stageCtr.GetComponent <btl_stageController> ();

        //playercontroller
        playerCtr = GameObject.Find("btl_playerController");
        plc       = playerCtr.GetComponent <btl_playerController> ();

        //hiari controller
        hiariCtr = GameObject.Find("btl_hiariController");
        hac      = hiariCtr.GetComponent <btl_hiariController> ();

        //game mode
        gameMode = gmFadein;
        gmCnt    = 0;

        //result
        result = false;

        //pause
        pause         = false;
        backTimeScale = 1.0f;
        tapCansel     = false;

        //cmn data init
        cmn_staticData.Instance.btl_initCmnData();
    }