Beispiel #1
0
 void Awake()
 {
     lifeBar = GameObject.FindGameObjectWithTag("LifeBar").GetComponent<Image>();
     rigidBoss = GameObject.FindGameObjectWithTag("Boss").GetComponent<Rigidbody2D> ();
     eventsVerifyBoss = GameObject.Find ("SceneManager").GetComponent<EventsVerifyBoss> ();
     gameManagerGeneric = GameManagerGeneric.Instance;
 }
Beispiel #2
0
    void Awake()
    {
        var sound = GameObject.Find("Kokoro Music");

        sound.GetComponent <AudioSource>().Stop();
        gm = GameManagerGeneric.Instance;
    }
 // public  GameObject         buttonQuit;
 // public GameObject buttonSliderMusic;
 public ControllerOptionsButtons()
 {
     gameManager = GameManagerGeneric.Instance;
     dataObjectPopUp = GameObject.Find("SceneManager").GetComponent<DataObjectPopUp>();
        // eventSystem = GameObject.Find("EventSystem");
     //buttonQuit = GameObject.Find("ButtonQuit");
     //buttonSliderMusic = GameObject.Find("SliderMusic");
 }
    void Awake()
    {
        aux = 0;
        flag = false;
        gameManager = GameManagerGeneric.Instance;
        Dictionary<string,object> data;
        List<string> info = new List<string>();
        info.Add("CurrentScene");
        data = gameManager.GetInfo(info);
        level =(string) data["CurrentScene"];
        Invoke("ChangeMenuScene", changeToMenu);

        if(Application.loadedLevelName == "Game Over")
            flag = true;
    }
Beispiel #5
0
 void Awake()
 {
     gameManager = GameManagerGeneric.Instance;
 }
 void Start()
 {
     gameManager = GameManagerGeneric.Instance;
     Invoke("ChangeScene", timeChange);
 }
 void Awake()
 {
     gameManager = GameManagerGeneric.Instance;
 }
 public ControllerPauseOptions()
 {
     gameManager = GameManagerGeneric.Instance;
     popUp = GameObject.Find("SceneManager").GetComponent<DataObjectPopUp>();
 }
 public ControllerExitButtons()
 {
     gameManager     = GameManagerGeneric.Instance;
 }
Beispiel #10
0
 void Awake()
 {
     //QualitySettings.vSyncCount = 0;
     //Application.targetFrameRate = 25;
     gm = GameManagerGeneric.Instance;
 }
Beispiel #11
0
 // Use this for initialization
 void Start()
 {
     gameManagerGeneric = GameManagerGeneric.Instance;
     Invoke("LoadLabCutScene",time);
 }
Beispiel #12
0
 void Awake()
 {
     fadeIn = GetComponents <AudioSource>().GetValue(1) as AudioSource;
     gm     = GameManagerGeneric.Instance;
     Screen.SetResolution(384, 384, false);
 }