public void Play_Task() { count = 3; Count_Down.SetActive(false); Realtime_Model_player.GetComponent <Animator>().Play("Walking"); Dummy_Model_player.GetComponent <Animator>().Play("Walking"); }
} // count down is finished... public void Start_Tutorial() { Count_Down.SetActive(false); count = 3; CameraFollow.instance.Set_Dummy_Target(); ani.Play("Walking"); // Camera1.SetActive(true); // Invoke("ChangeCamera",5f); // Invoke("ChangeCamera1", 10f); //Invoke("ChangeCamera2", 15f); //Invoke("ChangeCamera3", 20f); }
public void Countdown2() { Count_Down.SetActive(true); Count_Down.GetComponent <Text>().text = count.ToString(); print(count); count--; if (count <= 0) { CancelInvoke(); Play_Task(); } } // count down is finished...
public void Countdown() { Count_Down.SetActive(true); Count_Down.GetComponent <Text>().text = count.ToString(); print(count); count--; if (count <= 0) { CancelInvoke(); Start_Tutorial(); } }
void Start() { instance = this; /// Camera1.SetActive(true); CameraFollow.instance.Set_Dummy_Target(); ani = Dummy_Model_player.GetComponent <Animator>(); // ani.enabled = false; Count_Down.SetActive(false); Task_Completed_Panel.SetActive(false); dist = Vector3.Distance(Destination_object.transform.position, Dummy_Model_player.transform.position); print("Distance to other: " + dist); Distance_slider_for_dummy.maxValue = dist; Realtime_UI_Objects.SetActive(false); Realtime_3d_Objects.SetActive(false); }