void Start() { health = gameObject.GetComponent <Health> (); if (logScript == null) { logScript = gameObject.GetComponentInParent <SwingingLog> (); } vineSprite = gameObject.GetComponent <SpriteRenderer> (); }
void Start () { health = gameObject.GetComponent<Health> (); if(logScript == null) logScript = gameObject.GetComponentInParent<SwingingLog> (); vineSprite = gameObject.GetComponent<SpriteRenderer> (); }