コード例 #1
0
 // Use this for initialization
 void Start()
 {
     rend  = GetComponent <Renderer>();
     PR    = GetComponent <ParkRanger>();
     Clock = GameObject.FindGameObjectWithTag("Clock");
     Time  = Clock.GetComponent <Clock_24Hour>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     if (!clock && haveClockInTheScene)
     {
         clock       = GameObject.FindGameObjectWithTag("Clock");
         clockScript = clock.GetComponent <Clock_24Hour>();
     }
 }
コード例 #3
0
    // Use this for initialization
    void Start()
    {
        Clock       = GameObject.Find("24HourClock");
        Clock24Hour = Clock.GetComponent <Clock_24Hour>();



        var gos = Instantiate(pray);

        gos.transform.parent   = this.gameObject.transform;
        gos.transform.position = this.transform.position;
    }