public void CheckGoals() { //if anything in goals list is comleted or not //if nothing is false, all goals completed Completed = Goals.All(g => g.Completed); Debug.Log(Completed); }
public void CheckGoals() { if (Goals.All(g => g.Completed)) { Completed = true; } }
public void CheckGoals() { Completed = Goals.All(g => g.Completed); if (Completed) { GiveReward(); } }
public void CheckGoals() { Completed = Goals.All(goal => goal.Completed); /* When it this checks, it marks it as true. */ if (Completed) { GiveReward(); } }
public void CheckGoals() { if (Goals.All(g => g.Completed)) { Completed = true; Debug.Log("All goals completed"); } // Completed = Goals.All(g => g.Completed); }
public void CheckGoals() { Completed = Goals.All(g => g.Completed); }
public void CheckGoals() { Completed = Goals.All(x => x.Completed); Quest.RefreshPhasesStates(); Debug.Log("Phase completed"); }
public void CheckGoals() { IsCompleted = Goals.All(goal => goal.IsCompleted); }
public void CheckGoals() { //Requires Header System.Linq; Completed = Goals.All(g => g.Completed); }
public void CheckGoals() { Debug.Log("전 " + goal.ID + " " + goal.CurrentAmount + " " + goal.RequiredAmount); Completed = Goals.All(g => g.Completed); Debug.Log("후 " + goal.ID + " " + goal.CurrentAmount + " " + goal.RequiredAmount); }
} // experiencia que recibiar public void CheckGoals() { Completed = Goals.All(g => g.Completed); // revisa si en el script de goals se cumplen los objetivos si es asi lo pone true }