public void StartNextObjectives() { Debug.Log("Next Objective"); for (int i = 0; i < nextObjectives.Length; i++) { ObjectivePointer op = Quest.Instance.GetObjectivePointer(nextObjectives[i]); if (op != null && op.status == QuestStatus.Unstarted) { Debug.Log("Objective ketemu"); op.status = QuestStatus.OnProgress; Quest.Instance.processingObjective.Add(op); } } }
// override object.Equals public override bool Equals(object obj) { // // See the full list of guidelines at // http://go.microsoft.com/fwlink/?LinkID=85237 // and also the guidance for operator== at // http://go.microsoft.com/fwlink/?LinkId=85238 // if (obj == null || GetType() != obj.GetType()) { return(false); } ObjectivePointer op = (ObjectivePointer)obj; // TODO: write your implementation of Equals() here return(op.label == label); }
void Start() { pointers = FindObjectOfType <ObjectivePointer>(); FindSubCores(); }