コード例 #1
0
ファイル: Timer.cs プロジェクト: pGlasby/IGB200_Conga
    // Start is called before the first frame update
    void Start()
    {
        //tempTime = gameManager.timeLimit;
        gameManager      = Object.FindObjectOfType <GameManager>();
        alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();
        float temp;

        if (alltimeVariables.difficultyChecker[0] == true)
        {
            temp     = alltimeVariables.timeSetting[0];
            timeShow = temp;
        }
        if (alltimeVariables.difficultyChecker[1] == true)
        {
            temp     = alltimeVariables.timeSetting[1];
            timeShow = temp;
        }
        if (alltimeVariables.difficultyChecker[2] == true)
        {
            temp     = alltimeVariables.timeSetting[2];
            timeShow = temp;
        }
        if (alltimeVariables.boostChecker[3] == true)
        {
            timeShow += 30;
        }
    }
コード例 #2
0
ファイル: Quest.cs プロジェクト: pGlasby/IGB200_Conga
 // Start is called before the first frame update
 void Start()
 {
     instance         = this;
     alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();
     gameManager      = Object.FindObjectOfType <GameManager>();
     QuestSetUp();
 }
コード例 #3
0
 private void Start()
 {
     audio            = GetComponent <AudioSource>();
     gameManager      = Object.FindObjectOfType <GameManager>();
     congaLine        = Object.FindObjectOfType <CongaLineController>();
     animalSpawner    = Object.FindObjectOfType <AnimalSpawner>();
     alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();
 }
コード例 #4
0
 // Start is called before the first frame update
 void Start()
 {
     instance         = this;
     counter          = 0;
     alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();
     animalMax        = alltimeVariables.spawnRate;
     if (alltimeVariables.boostChecker[4] == true)
     {
         animalMax *= 2;
     }
 }
コード例 #5
0
    // Start is called before the first frame update
    void Start()
    {
        instance         = this;
        alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();


        if (phoneVersion == true)
        {
            joystick.SetActive(true);
        }

        GameSetUp();
        QuestSetUp();
        BoostSetUp();
    }
コード例 #6
0
 // Start is called before the first frame update
 void Start()
 {
     alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();
 }
コード例 #7
0
ファイル: PlayMenu.cs プロジェクト: pGlasby/IGB200_Conga
 // Start is called before the first frame update
 void Start()
 {
     alltimeVariables = Object.FindObjectOfType <AlltimeVariables>();
     shop             = Object.FindObjectOfType <Shop>();
     audio            = GetComponent <AudioSource>();
 }