Beispiel #1
0
        void LinkObjectsAndComponents()
        {
            sman = FindObjectOfType <SceneMan>();
            if (sman == null)
            {
                Debug.Log("Cound not find RegionMan");
            }
            jman = sman.jnman;
            gman = sman.gaman;
            lman = sman.loman;
            var cango = GameObject.Find("SimParkUICanvas");

            canvas = cango.GetComponent <Canvas>();
            canvas = cango.GetComponent <Canvas>();

            optionsPanelGo = transform.Find("OptionsPanel").gameObject;
            optionsPanel   = optionsPanelGo.GetComponent <OptionsPanel>();
            if (optionsPanelGo.activeSelf)
            {
                optionsPanelGo.SetActive(false);
            }

            runButton     = transform.Find("RunButton").gameObject.GetComponent <Button>();
            frameButton   = transform.Find("FrameButton").gameObject.GetComponent <Button>();
            evacButton    = transform.Find("EvacButton").gameObject.GetComponent <Button>();
            unevacButton  = transform.Find("EvacButton").gameObject.GetComponent <Button>();
            freeFlyButton = transform.Find("FreeFlyButton").gameObject.GetComponent <Button>();
            freeFlyPanel  = transform.Find("FreeFlyHelpPanel").gameObject;
            fteButton     = transform.Find("FteButton").gameObject.GetComponent <Button>();
            conButton     = transform.Find("ConButton").gameObject.GetComponent <Button>();
            secButton     = transform.Find("SecButton").gameObject.GetComponent <Button>();
            visButton     = transform.Find("VisButton").gameObject.GetComponent <Button>();
            unkButton     = transform.Find("UnkButton").gameObject.GetComponent <Button>();
            vt2dButton    = transform.Find("Vt2DButton").gameObject.GetComponent <Button>();
        }
Beispiel #2
0
 public void Initialize(GarageMan gm)
 {
     this.gm       = gm;
     parentGarage  = null;
     childGarages  = new List <Garage>();
     fullname      = name;
     slotnumformat = "D2";
 }
Beispiel #3
0
 // Use this for initialization
 void Start()
 {
     sman     = FindObjectOfType <SceneMan>();
     linkctrl = sman.linkcloudman;
     gm       = sman.gaman;
     bm       = sman.bdman;
     pm       = sman.psman;
     zm       = sman.znman;
 }