示例#1
0
 public void RedrawAll()
 {
     foreach (var item in list)
     {
         item.Redraw();
     }
     Own.SetGrow();
 }
示例#2
0
 protected override void GeneUpdate()
 {
     if (Increase(aging) == 0)
     {
         Own.Behaviors.StartAction <Dead>();
         return;
     }
     else if (Amount > repAge)
     {
         Own.Behaviors.StartAction <FindPair>();
     }
     else if (Amount < repAge)
     {
         if (Amount % 0.1 == 0)
         {
             Own.SetGrow();
         }
     }
     Bar.sizeDelta = new Vector2(Amount * 100, Bar.sizeDelta.y);
 }