public virtual void Update() { if (redShadowType == RedShadowType.Expanding) { RedShadowRadius += 32; if (RedShadowRadius * 2 > 2500) { redShadowType = RedShadowType.Visible; } } else if (redShadowType == RedShadowType.Retracting) { RedShadowRadius -= 32; if (RedShadowRadius <= 0) { redShadowType = RedShadowType.Invisible; } } foreach (DisplayObjectContainer doc in Childs) { doc.Update(); } }
public void EndRedShadow() { redShadowType = RedShadowType.Retracting; }
public void StartRedShadow(Vector2 position) { redShadowType = RedShadowType.Expanding; RedShadowPosition = position; RedShadowRadius = 0; }