Exemplo n.º 1
0
 public void _wm_lowerBridge()
 {
     currentAngle += deltaAngle;
     if (currentAngle > openAngle)
     {
         currentAngle = openAngle;
     }
     level_N.storeFloatValue(StorageVariable, currentAngle);
     angle.setValue(openAngle - currentAngle);
 }
Exemplo n.º 2
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag != "Player")
        {
            return;
        }

        this.isWaitingForActionToComplete = true;
        level.vignette._wa_close(this);
        state = 1;

        if (forceSpawnCoordinates.sqrMagnitude > 0)
        {
            level.storeFloatValue("Coords" + destination + "X", forceSpawnCoordinates.x);
            level.storeFloatValue("Coords" + destination + "Y", forceSpawnCoordinates.y);
            level.storeFloatValue("Coords" + destination + "Z", forceSpawnCoordinates.z);
        }
        int or = other.GetComponent <PlayerScript> ().orientation();

        level.storeIntValue("Orientation", or);
    }
Exemplo n.º 3
0
    void OnTriggerEnter(Collider other)
    {
        if (other.tag == "Player")
        {
            if (storedPosition == Vector3.zero)
            {                                                         // if gate is empty
                // fill the gate
                storedPosition = other.gameObject.transform.position; // store player entry position
                level_A.storeFloatValue(reentryVariable + "_X", storedPosition.x);
                level_A.storeFloatValue(reentryVariable + "_Y", storedPosition.y);
                level_A.storeFloatValue(reentryVariable + "_Z", storedPosition.z);
            }

            cam_A.moveToPoint(storedPosition);

            if (disableCameraLookAt)
            {
                cam_A._wm_disableLookAt();
            }
        }
    }
Exemplo n.º 4
0
 void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         if (dataType == DataType.Bool)
         {
             levelController.storeBoolValue(variableName, boolValue);
         }
         if (dataType == DataType.String)
         {
             levelController.storeStringValue(variableName, stringValue);
         }
         if (dataType == DataType.Int)
         {
             levelController.storeIntValue(variableName, intValue);
         }
         if (dataType == DataType.Float)
         {
             levelController.storeFloatValue(variableName, floatValue);
         }
     }
 }
Exemplo n.º 5
0
 public void setTargetX(float x = 0, float time = 2)
 {
     rotX     = x;
     timeRotX = time;
     level.storeFloatValue(level.locationName + "CameraPivotTargetX", x);
 }