Exemplo n.º 1
0
 public bool CanBuyProject(Project project, bool constructing)
 {
     if (project.Rounds() != Project.outOfRange)
     {
         if (!constructing)
         {
             if (project.MetRequirements())
             {
                 if (Solvent(project, coins, discount))
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }
             else
             {
                 return false;
             }
         }
         else
         {
             //Debug.Log ("You cant upgrade this project at the moment because it is still under construction!");
             return false;
         }
     }
     else
     {
         //Debug.Log("Project is at maximum upgrade!");
         return false;
     }
 }