Example #1
0
 /// <summary>
 /// turn on/off path to resource and set ant as cameraTarget
 /// </summary>
 public void SwitchAntPath()
 {
     if (!m_PathIsActive)
     {
         m_Camera = FindObjectOfType <CameraControll>();
         m_Camera.SetTarget(m_Ant);
         ShowAntPath();
     }
     else
     {
         HideAntPath();
     }
 }