// Use this for initialization void Start() { this.goombaScript = this.transform.parent.GetComponent<GoombaScript> (); this.player = GameObject.FindWithTag ("Player"); this.playerScript = this.player.GetComponent<PlayerScript>(); this.playerRb = this.player.GetComponent<Rigidbody2D>(); }
// Use this for initialization void Start() { this.player = GameObject.FindWithTag ("Player"); this.playerScript = this.player.GetComponent<PlayerScript>(); this.evilMushroom = this.transform.parent.GetComponent<GoombaScript>(); }