Esempio n. 1
0
    void Awake()
    {
        if (SaveManager.instance.state.levelAI == 0)
        {
            difLevel = DifficultLevel.Easy;
        }
        else if (SaveManager.instance.state.levelAI == 1)
        {
            difLevel = DifficultLevel.Normal;
        }
        else if (SaveManager.instance.state.levelAI == 2)
        {
            difLevel = DifficultLevel.Hard;
        }
        else if (SaveManager.instance.state.levelAI == 3)
        {
            difLevel = DifficultLevel.WhatTheFuckIamPlaying;
        }
        else if (SaveManager.instance.state.levelAI == 4)
        {
            difLevel = DifficultLevel.Tor1;
        }
        else if (SaveManager.instance.state.levelAI == 5)
        {
            difLevel = DifficultLevel.Tor2;
        }
        else if (SaveManager.instance.state.levelAI == 6)
        {
            difLevel = DifficultLevel.Tor3;
        }
        else if (SaveManager.instance.state.levelAI == 7)
        {
            difLevel = DifficultLevel.Tor4;
        }

        if (left)
        {
            fingerAILeft = finger.GetComponent <FingerLeftControl> ();
        }
        else if (right)
        {
            fingerAIRight = finger.GetComponent <FingerRightControl> ();
        }
    }
Esempio n. 2
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        if (isMainGame)
        {
            questPlayAnyGame = GameObject.Find("PlayAnyGame").GetComponent <CointainData> ().quest;
            questPlay2Player = GameObject.Find("Play2Player").GetComponent <CointainData> ().quest;
            questPlayAITime  = GameObject.Find("PlayAITimes").GetComponent <CointainData> ().quest;
            questWinAiTime   = GameObject.Find("PlayWinAITimes").GetComponent <CointainData> ().quest;
        }

        healthBar.Initialize();
        staminaBar.Initialize();
        redHealthBar.Initialize();
        shieldBar.Initialize();
    }
Esempio n. 3
0
 void Start()
 {
     left  = gameObject.GetComponentInParent <FingerLeftControl> ();
     right = gameObject.GetComponentInParent <FingerRightControl> ();
 }