Ejemplo n.º 1
0
 void Awake()
 {
     c = FindObjectOfType(typeof(CentralDeformatory)) as CentralDeformatory;
     buttonOne = new Rect(20,40,100,100);
     buttonTwo = new Rect (20,160,100,100);
     buttonThree = new Rect(20,280,100,100);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// helper coroutine to draw a line for a few seconds
 /// </summary>
 /// <param name="a">
 /// A <see cref="Vector3"/>
 /// </param>
 /// <param name="b">
 /// A <see cref="Vector3"/>
 /// </param>
 /// <param name="col">
 /// A <see cref="Color"/>
 /// </param>
 /// <returns>
 /// A <see cref="IEnumerator"/>
 /// </returns>
 private IEnumerator DrawLine(Vector3 a, Vector3 b, Color col)
 {
     float c = 0f;
     while (c< 3f)
     {
         Debug.DrawLine(a, b, col);
         c += Time.deltaTime;
         yield return null;
     }
 }
Ejemplo n.º 3
0
 void Awake()
 {
     c = FindObjectOfType(typeof(CentralDeformatory)) as CentralDeformatory;
 }