예제 #1
0
    void Start()
    {
        GameObject juppyObjekt = GameObject.FindGameObjectsWithTag("Juppy")[0];

        juppy          = juppyObjekt.GetComponent <Juppy>();
        juppyTransform = juppy.GetComponent <Transform>();
    }
예제 #2
0
 void Start()
 {
     text  = this.GetComponent <Text>();
     juppy = GameObject.FindGameObjectsWithTag("Juppy")[0].GetComponent <Juppy>();
 }