// Use this for initialization void Start() { base.initialise(); //instantiates moveArrow, vector2, and halo staticArrow = GameObject.Find("Cluster/StaticArrow").GetComponent<Arrow>(); numLine = GameObject.Find("Cluster/StaticArrow/NumLine").transform; vector1 = GameObject.Find("Canvas/Header/Vector1").GetComponent<UIvector>(); //mapped to staticArrow vector1.set(staticArrow.toVector()); //staticArrow does not move }
// Use this for initialization void Start() { base.initialise(); //instantiates moveArrow, vector2, and halo staticArrow = GameObject.Find("Cluster/StaticArrow").GetComponent<Arrow>(); crossProduct = GameObject.Find("Cluster/CrossProduct").GetComponent<Arrow>(); gridToggle = GameObject.Find("Canvas/GridToggle").GetComponent<Toggle>(); vector1 = GameObject.Find("Canvas/Header/Vector1").GetComponent<UIvector>(); //mapped to staticArrow vector1.set(staticArrow.toVector()); //staticArrow does not move vector3 = GameObject.Find("Canvas/Header/Vector3").GetComponent<UIvector>(); //mapped to crossProduct }