protected override void PerformAction(float timeStep) { base.PerformAction(timeStep); if (!fadeStarted && (agentComponent != null)) { if (fadeToTransparency) { agentComponent.StartFadingToTransparency(fadeSpeed); } else { agentComponent.StartFadingToOpaque(fadeSpeed); } fadeStarted = true; } }