示例#1
0
文件: Shop.cs 项目: Le0W0lf/FoodShop
 //Find index for current stand
 private int FindIndex(Stand stand)
 {
     for (int i = 0; i < countOfStands; i++)
     {
         if (stand == stands[i])
         {
             return(i);
         }
     }
     return(-1);
 }
示例#2
0
 public void Start(Stand stand)
 {
     this.stand = stand;
     Task.Run(() => Work());
 }