Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        sss = GameObject.Find("SceneSwitchingScript").GetComponent <SceneSwitchingScript>();

        if (SceneSwitchingScript.isMac == false)
        {
            if (SceneSwitchingScript.isXbox == true)
            {
                GetComponent <StandaloneInputModule>().submitButton = "Xbox_Button_A_ALL";
            }
            else if (SceneSwitchingScript.isXbox == false)
            {
                GetComponent <StandaloneInputModule>().submitButton = "PS4_Button_A_ALL";
            }
        }
        else if (SceneSwitchingScript.isMac == true)
        {
            if (SceneSwitchingScript.isXbox == true)
            {
                GetComponent <StandaloneInputModule>().submitButton = "Xbox_Button_A_ALL_MAC";
            }
            else if (SceneSwitchingScript.isXbox == false)
            {
                GetComponent <StandaloneInputModule>().submitButton = "PS4_Button_A_ALL";
            }
        }
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     onCookingStation = false;
     recipeBookImage.SetActive(false);
     ESP1                 = GameObject.Find("EnemySpawnerP1").GetComponent <EnemySpawnerP1>();
     ESP2                 = GameObject.Find("EnemySpawnerP2").GetComponent <EnemySpawnerP2>();
     ESP3                 = GameObject.Find("EnemySpawnerP3").GetComponent <EnemySpawnerP3>();
     ESP4                 = GameObject.Find("EnemySpawnerP4").GetComponent <EnemySpawnerP4>();
     levelLogicScript     = GameObject.Find("LevelLogic").GetComponent <LevelLogic>();
     sceneSwitchingScript = GameObject.Find("SceneSwitchingScript").GetComponent <SceneSwitchingScript>();
 }