private void Awake() { this.startingColor = base.GetComponent <Renderer>().material.color; Targetable component = base.GetComponent <Targetable>(); component.AddOnDetectedDelegate(new Targetable.OnDetectedDelegate(this.OnDetected)); component.AddOnNotDetectedDelegate(new Targetable.OnNotDetectedDelegate(this.OnNotDetected)); component.AddOnHitColliderDelegate(new Targetable.OnHitColliderDelegate(this.OnHit)); }