protected override void Initialization() { _phage = GetComponent <Transform>(); pos1 = new Vector3(_phage.position.x, _phage.position.y + 1.5f, _phage.position.z); pos2 = new Vector3(_phage.position.x, _phage.position.y - 1.5f, _phage.position.z); wobbler = GetComponent <PhageWobbler>(); }
/// <summary> /// On init we grab our CharacterFly ability /// </summary> protected override void Initialization() { _characterFly = this.gameObject.GetComponent <CharacterFly>(); _controller = this.gameObject.GetComponent <CorgiController>(); _phage = this.gameObject.GetComponent <Transform>(); wobbler = this.gameObject.GetComponent <PhageWobbler>(); }