// Use this for initialization void Start() { gameState = GameState.START; if (gameManager == null) { gameManager = GameObject.Find("GameManager").GetComponent <GameManager>(); } if (timer == null) { timer = GameObject.Find("Timer").GetComponent <Timer>(); } if (cameraController == null) { cameraController = GameObject.Find("MainCamera").GetComponent <CameraController>(); } if (gaugeController == null) { gaugeController = GameObject.Find("Gauge").GetComponent <GaugeController>(); } if (fillterController == null) { fillterController = GameObject.Find("Fillter").GetComponent <FillterController>(); } //if (playerController == null) playerController = GameObject.Find("Player").GetComponent<PlayerController>(); if (menuController == null) { menuController = GameObject.Find("MenuController").GetComponent <MenuController>(); } }
// Use this for initialization void Start() { gameState = GameState.START; if (gameManager == null) gameManager = GameObject.Find("GameManager").GetComponent<GameManager>(); if (timer == null) timer = GameObject.Find("Timer").GetComponent<Timer>(); if (cameraController == null) cameraController = GameObject.Find("MainCamera").GetComponent<CameraController>(); if (gaugeController == null) gaugeController = GameObject.Find("Gauge").GetComponent<GaugeController>(); if (fillterController == null) fillterController = GameObject.Find("Fillter").GetComponent<FillterController>(); //if (playerController == null) playerController = GameObject.Find("Player").GetComponent<PlayerController>(); if (menuController == null) menuController = GameObject.Find("MenuController").GetComponent<MenuController>(); }