Ejemplo n.º 1
0
 void Start()
 {
     health = gameObject.GetComponent <Health> ();
     if (logScript == null)
     {
         logScript = gameObject.GetComponentInParent <SwingingLog> ();
     }
     vineSprite = gameObject.GetComponent <SpriteRenderer> ();
 }
Ejemplo n.º 2
0
	void Start () {
		health = gameObject.GetComponent<Health> ();
		if(logScript == null) logScript = gameObject.GetComponentInParent<SwingingLog> ();
		vineSprite = gameObject.GetComponent<SpriteRenderer> ();
	}