/// <summary>
 /// Get a handle on the panel array script for easy access by all instances.
 /// </summary>
 protected static void FindPanelArray()
 {
     if (!panelArray)
     {
         panelArray = GameObject.FindGameObjectWithTag("PanelArray").GetComponent <PanelArray>() as PanelArray;
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        if (panelArray == null)
        {
            panelArray = GameObject.FindGameObjectWithTag("PanelArray").GetComponent <PanelArray>() as PanelArray;
        }
        if (customGaugeManager == null)
        {
            customGaugeManager = GameObject.FindGameObjectWithTag("CustomGauge").GetComponent <CustomGaugeManager>() as CustomGaugeManager;
        }

        PlaceCombatants();
    }