// Use this for initialization
 void Start()
 {
     m_audioSource           = gameObject.GetComponent <AudioSource>();
     m_downloadingTime       = downloadingTime;
     m_sequenceTime          = m_downloadingTime;
     m_starsignTime          = m_downloadingTime;
     m_receivePasswordScript = gameObject.GetComponent <ReceivePasswords>();
     m_gameController        = GameObject.FindGameObjectWithTag("GameController");
     m_freezeControlScript   = m_gameController.GetComponent <FreezeControls>();
     m_lengthNumber          = m_letters.Length;
     Invoke("RecievePassword", 1f);
 }
Beispiel #2
0
    // Use this for initialization
    void Start()
    {
        m_safeLockScript = GetComponent <SafeLocks>();
        m_firstPersonControllerScript = scientist.GetComponent <FirstPersonController>();
        m_freezeControls        = gameController.GetComponent <FreezeControls>();
        m_agentWinScript        = scientist.GetComponent <AgentWin>();
        m_hackingDocumentScript = ai.GetComponent <HackingDocuments>();
        m_receivePasswordScript = gameObject.GetComponent <ReceivePasswords>();

        m_countingDown = m_lockedOutTime;

        Invoke("GetPassword", 1f);
        starSignImage.sprite = starSigns[m_currentStarSignNo];
        RandomiseButtonOrder();
        m_correctStarSign = Random.Range(0, 12);

        //print("correct star sign is: " + m_correctStarSign);
        CheckLocks();
    }