Exemplo n.º 1
0
 void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
         return;
     }
     else
     {
         instance = this;
     }
     DontDestroyOnLoad(this.gameObject);
 }
Exemplo n.º 2
0
    public void Start()
    {
        if (GameObject.FindGameObjectWithTag("LeaderboardPanel") != null)
        {
            leaderboardPanel     = GameObject.FindGameObjectWithTag("LeaderboardPanel");
            leaderboardScoresObj = GameObject.FindGameObjectWithTag("LeaderboardScores");
            leaderboardNamesObj  = GameObject.FindGameObjectWithTag("LeaderboardNames");
            //leaderboardPanel.SetActive(false);
        }


        gameSettings = gameObject.GetComponent <GameSettingsScript>();
        //gameSettings = GameObject

        LoginToPlayfab();
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        GatherBuildSettings();
        worldSpawner = GameObject.Find("World").GetComponent<SpawnWorldScript>();
        funnieArmController = GameObject.Find("ParrotContainer").GetComponent<FunnieMovementScript>();
        funnieBodyController = GameObject.Find("ParrotContainer").GetComponent<FunnieAltMovementScript>();
        settings = GameObject.Find("GameSettings").GetComponent<GameSettingsScript>();

        if (settings.controllerChoice == 1)
        {
            funnieBodyController.enabled = true;
            funnieArmController.enabled = false;
        }
        else
        {
            funnieBodyController.enabled = false;
            funnieArmController.enabled = true;
        }
        if (GameObject.Find("LogSys(Clone)") == null)
        {
           GameObject log = Instantiate(Resources.Load("LogSys")) as GameObject;
        }
    }
 // Use this for initialization
 void Start()
 {
     gameSettings = GameObject.Find("GameSettings").GetComponent<GameSettingsScript>();
 }
Exemplo n.º 5
0
 // Use this for initialization
 void Start()
 {
     gameSettings = GameObject.Find("GameSettings").GetComponent<GameSettingsScript>();
     backgroundHolder = GameObject.Find("Background").GetComponent<GUITexture>();
     cursor = GameObject.Find("HandPointer").GetComponent<MenuMovement>();
     SFX = GameObject.Find("SFXHandler");
 }
Exemplo n.º 6
0
 private void Awake()
 {
     Instance = this;
 }
Exemplo n.º 7
0
 void Main()
 {
     settings = GameObject.Find("GameSettings").GetComponent<GameSettingsScript>();
 }
Exemplo n.º 8
0
    void Start()
    {
        gameSettings = GameObject.Find ("GameSettings").GetComponent<GameSettingsScript>();
        menuHolder = GameObject.Find("menuHolder");

        /*
        //figureButton = new Rect(Screen.width / 2 + 300, Screen.height / 2 - 100, 200, 200);
        //monkeyButton = new Rect(Screen.width / 2 + 100, Screen.height / 2 - 100, 200, 200);
        tutorialButton = new Rect(Screen.width / 2 - 100, Screen.height / 2 - 100, 200, 200);
        startButton = new Rect(Screen.width / 2 - 100, Screen.height / 2 - 100, 550, 150);
        fiveMinButton = new Rect(Screen.width / 2 - 300, Screen.height / 2 - 100, 200, 200);
        choiceButton = new Rect(Screen.width / 2 - 500, Screen.height / 2 - 100, 200, 200);
        saveSelectionButton = new Rect(Screen.width / 2 - 100, Screen.height / 2 + 200, 200, 200);
        Debug.Log ("Initiated");
        */
    }