private void Awake() { mainCamera = GameObject.Find("Main Camera").GetComponent <Camera>(); floorArranger = GameObject.Find("GameManager").GetComponent <FloorArranger>(); interActiveUIController = GameObject.Find("InteractiveCanvas").GetComponent <InteractiveUIController>(); menuUIController = GameObject.Find("MenuCanvas").GetComponent <MenuUIController>(); fieldConstructor = GameObject.Find("GameManager").GetComponent <FieldConstructor>(); characterManager = GameObject.Find("GameManager").GetComponent <CharacterManager>(); //Cursor.lockState = CursorLockMode.Confined; // 게임 창 밖으로 마우스가 안나감 }
private void Awake() { systemTapIsOn = false; mainCamera = GameObject.Find("Main Camera").GetComponent <Camera>(); fieldConstructor = GameObject.Find("GameManager").GetComponent <FieldConstructor>(); menuCanvas = GameObject.Find("MenuCanvas").GetComponent <Canvas>(); systemCanvas = GameObject.Find("SystemCanvas").GetComponent <Canvas>(); OutviewBase = GameObject.Find("OutviewBase"); dataStorage = GameObject.Find("GameManager").GetComponent <DataStorage>(); }
private void Start() { field = GetComponent <FieldConstructor>(); cam = Camera.main; }