Ejemplo n.º 1
0
 void Start()
 {
     if (transform.childCount > 0 && !elbow)
     {
         guide = GetComponentInChildren <ArrowGuide>();
         guide.SetArrows(canRight, canLeft, canUp, canDown);
     }
 }
    private void Start()
    {
        if (SceneManager.GetActiveScene().name.ToLower().Contains("dynamic"))
        {
            dynamicScene = true;
        }

        if (!dynamicScene)
        {
            queue = GameObject.Find("QueueObject").GetComponent <StaticDemoQueue>();
            arrow = GameObject.Find("ArrowPivot").GetComponent <ArrowGuide>();
        }
        else
        {
            dQueue = GameObject.Find("EventQueue").GetComponent <DynamicQueue>();
        }
    }