示例#1
0
 // Use this for initialization
 void Start()
 {
     textComponent = textbox.GetComponent <TextBox>();
     textComponent.setText("Hi! I'm made of chalk!");
     pbar     = bar.GetComponent <PetBar>();
     animator = dog.GetComponent <Animator> ();
 }
示例#2
0
	// Use this for initialization
	void Start () {
		textComponent = textbox.GetComponent<TextBox>();
		//textComponent.setText("");
		pbar = bar.GetComponent<PetBar>();
		animator = dog.GetComponent<Animator> ();
		gameGUI = GameObject.Find ("Game");
		StartCoroutine (monologue ());
	}
示例#3
0
	// Use this for initialization
	void Start () {
    textComponent = textbox.GetComponent<TextBox>();
    textComponent.setText("Play fetch with me!");
    pbar = bar.GetComponent<PetBar>();
    pbutton = button.GetComponent<PetButton>();
    buttonThrower = button.GetComponent<Throwable>();
	animator = dog.GetComponent<Animator> ();
	}
示例#4
0
 // Use this for initialization
 void Start()
 {
     textComponent = textbox.GetComponent <TextBox>();
     //textComponent.setText("");
     pbar     = bar.GetComponent <PetBar>();
     animator = dog.GetComponent <Animator> ();
     gameGUI  = GameObject.Find("Game");
     StartCoroutine(monologue());
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     textComponent = textbox.GetComponent <TextBox>();
     textComponent.setText("Play fetch with me!");
     pbar          = bar.GetComponent <PetBar>();
     pbutton       = button.GetComponent <PetButton>();
     buttonThrower = button.GetComponent <Throwable>();
     animator      = dog.GetComponent <Animator> ();
 }
示例#6
0
	// Use this for initialization
	void Start () {
    textComponent = textbox.GetComponent<TextBox>();
    textComponent.setText("Hi! I'm made of chalk!");
    pbar = bar.GetComponent<PetBar>();
	animator = dog.GetComponent<Animator> ();
	}