Exemple #1
0
 public int GetStart(int level)
 {
     foreach (GameObject cell in memory)
     {
         StartCommand start = cell.GetComponent <StartCommand>();
         if (start != null && start.paramValue.ContainsKey("level") &&
             start.GetLevel((Vector2)start.paramValue["level"]).Equals(level))
         {
             return(start.addr);
         }
     }
     return(-1);
 }