Пример #1
0
    // Use this for initialization
    void Start()
    {
        //bros
        small = GameManagerScript.SB;
        big = GameManagerScript.BB;

        //waiting for player text
        waitingForPlayerText = GameObject.Find("WaitingForPlayerText").GetComponent<Image>();
        waitingForDialogueText = GameObject.Find("WaitingForDialogueText").GetComponent<Image>();

        //dialog
        dialogue = FindObjectOfType<GameManagerScript>().GetComponent<DialogueScript>();

        betterCamScript = Camera.main.GetComponent<BetterCameraScript>();
    }
Пример #2
0
 void Start()
 {
     camScript = Camera.main.GetComponent<BetterCameraScript>();
 }