示例#1
0
 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();
     }
 }
示例#2
0
 public void EndRedShadow()
 {
     redShadowType = RedShadowType.Retracting;
 }
示例#3
0
 public void StartRedShadow(Vector2 position)
 {
     redShadowType     = RedShadowType.Expanding;
     RedShadowPosition = position;
     RedShadowRadius   = 0;
 }