private void Awake() { this._camera = base.transform; this._mainCameraTran = base.transform.Find("MainCamera"); this._buildingsUtil = GameObject.Find("IslandWorld").GetComponent <MonoIslandBuildingsUtil>(); this._cover = base.transform.Find("MainCamera/Cover"); this._cameraBasePos.position = base.transform.position; this._cameraBasePos.rotation = base.transform.rotation; this._gyroManager = base.GetComponent <IslandCameraNavigatorNew>(); this._engine = GameObject.Find("IslandWorld/Engine").GetComponent <MonoIslandBuilding>(); }
private void Awake() { this._util = base.transform.parent.GetComponent <MonoIslandBuildingsUtil>(); }