void GetRefsToGameObjects()
 {
     saveManager = GameObject.FindObjectOfType <SaveManager>();
     firstObj    = GameObject.Find("firstObj").transform;
     secondObj   = GameObject.Find("secondObj").transform;
     thirdObj    = GameObject.Find("thirdObj").transform;
     fourthObj   = GameObject.Find("fourthObj").transform;
 }
Пример #2
0
        void GetReferencesFromScene()
        {
            flowchart         = GameObject.FindObjectOfType <Flowchart>();
            flowchartTransVar = flowchart.GetVariable <TransformVariable>("thisTrans");
            gameSaver         = GameObject.FindObjectOfType <GameSaver>();
            gameLoader        = GameObject.FindObjectOfType <GameLoader>();
            saveManager       = GameObject.FindObjectOfType <SaveManager>();

            GetRefsToGameObjects();
        }