public void InitController() { if (entity == null) { return; } entityVehicle = entity as EntityCustomVehicle; }
public void InitController() { if (entity == null) { return; } entityVehicle = entity as EntityCustomVehicle; if (entityVehicle.cameraOffset == null) { return; } /*screenWidth = UnityEngine.Screen.width; * screenHeight = UnityEngine.Screen.height; * midScreenX = screenWidth / 2.0f; * midScreenY = screenHeight / 2.0f; * DebugMsg("Screen resolution = " + screenWidth.ToString() + " (" + midScreenX.ToString() + ") X " + screenHeight.ToString() + " (" + midScreenY.ToString() + ")");*/ newThirdPcameraOffset = entityVehicle.cameraOffset; }
public VehicleDestroyAndHarvest(EntityCustomVehicle _entityVehicle) { this.entityVehicle = _entityVehicle; }