void Start() { player = gameObject.GetComponentInParent<GuyMove>(); }
void Start() { player = gameObject.GetComponentInParent <GuyMove>(); }
// Use this for initialization void Start() { currentHealth = startingHealth; rigid_body = GetComponentInParent<Rigidbody>(); guy = gameObject.GetComponentInParent<GuyMove>(); }
// Use this for initialization void Start() { currentHealth = startingHealth; rigid_body = GetComponentInParent <Rigidbody>(); guy = gameObject.GetComponentInParent <GuyMove>(); }