public override void ChangeObjective() { if (change) { change = false; if (Objective.tag == "GND") { Objective = Pin13; myPointer.SetPosition(Objective); GND.SetActive(false); Pin13.SetActive(true); change = true; } else if (Objective.tag == "Pin13") { StartCoroutine(Wait("LevelOneEnd")); } } }
public override void ChangeObjective() { if (change) { change = false; objectives[index].SetActive(false); index++; if (index >= objectives.Length) { StartCoroutine(Wait("LevelThree-Final")); } else { Objective = objectives[index]; Objective.SetActive(true); myPointer.SetPosition(Objective);// indicator.transform.position = new Vector3(Objective.transform.position.x, 5.084044f, Objective.transform.position.z); if (Objective == objectives[index]) { change = true; } } } }