Beispiel #1
0
 public void InitController()
 {
     if (entity == null)
     {
         return;
     }
     entityVehicle = entity as EntityCustomVehicle;
 }
Beispiel #2
0
    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;
    }
Beispiel #3
0
 public VehicleDestroyAndHarvest(EntityCustomVehicle _entityVehicle)
 {
     this.entityVehicle = _entityVehicle;
 }