コード例 #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>();
    }
コード例 #2
0
    // Use this for initialization
    void Start()
    {
        PlayerControl = FindObjectOfType <ChracterController>();
        Spawner       = FindObjectOfType <crowSpawner>();
        ScoreUpdate();
        UpdateHealth();
        ChargeScript = FindObjectOfType <Charge> ();

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