상속: MonoBehaviour
예제 #1
0
    // Use this for initialization
    void Start()
    {
        anim    = gameObject.GetComponent <Animator> ();
        changer = GameObject.Find("sceneManager").GetComponent <changeScene>();
        AudioSource[] sounds = GetComponents <AudioSource>();

        spring = sounds[0];
        hit    = sounds[1];

        gm = gameManager.instance;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     charText        = GameObject.Find("CharText").GetComponent <Text> ();
     placeholderText = GameObject.Find("Placeholder").GetComponent <Text> ();
     script          = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <changeScene> ();
 }
예제 #3
0
 // Use this for initialization
 void Start()
 {
     charText = GameObject.Find ("CharText").GetComponent<Text> ();
     placeholderText = GameObject.Find ("Placeholder").GetComponent<Text> ();
     script = GameObject.FindGameObjectWithTag ("MainCamera").GetComponent<changeScene> ();
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     gm           = gameManager.instance;
     changer      = GameObject.Find("sceneManager").GetComponent <changeScene>();
     timerStarted = true;
 }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     changer = GameObject.Find("sceneManager").GetComponent <changeScene>();
 }