protected override void OnUpdate() { base.OnUpdate(); if (this.owner && owner.IsVisible()) { Vector3 pos = this.owner.GetPosition(); pos.y += 0.2f; SetPosition(pos); if (this.gameObject) { this.gameObject.SetActive(true); } } else if (this.gameObject) { this.gameObject.SetActive(false); } }