Esempio n. 1
0
        // Start is called before the first frame update
        public ConsoleTextManager(GameObject MainScrollView, GameObject MainConsoleContent, Text MainTextPrefab, CoreLinkerObj coreLinkerObj)
        {
            MainScrollRect = MainScrollView.GetComponent <ScrollRect>();

            DeleteChildObject(MainConsoleContent);

            MainConsoleContent.AddComponent <InGameConsole>();
            MainConsole = MainConsoleContent.GetComponent <InGameConsole>();
            MainConsole._new(MainConsoleContent, MainTextPrefab, MainScrollRect);

            CoreLinkerObj = coreLinkerObj;

            CoreLinkerObj.gameObject.AddComponent <IGConsole>();
            IGConsole.Instance.Init(MainConsole);
        }
 void Start()
 {
     linkerObj = GameObject.Find("UILinkManager").GetComponent <CoreLinkerObj>();
     linkerObj.RegisterObj(this);
 }