Exemplo n.º 1
0
    // will need an audioscript for each possible announcement;

    // Start is called before the first frame update
    void Start()
    {
        audio.clip = welcome;
        audio.Play();
        character   = player.GetComponent <ChracterController>();
        TimerActive = Timer.GetComponent <TimerScript>();
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        PlayerControl = FindObjectOfType <ChracterController>();
        Spawner       = FindObjectOfType <crowSpawner>();
        ScoreUpdate();
        UpdateHealth();
        ChargeScript = FindObjectOfType <Charge> ();

        GameObject MemoryObj = GameObject.Find("Memory");
    }
Exemplo n.º 3
0
 void Start()
 {
     //Fetch the RectTransform from the GameObject
     this_rectTransform = GetComponent <RectTransform>();
     CC = FindObjectOfType <ChracterController>();
 }
Exemplo n.º 4
0
 void Start()
 {
     CurrentTime = StartTime;
     LookScript  = Cam.GetComponent <NewMouseLook>();
     CharScript  = Player.GetComponent <ChracterController>();
 }