Пример #1
0
 protected override void OnUpdateWithDiffs(float diffX, float diffY, float diffZ, float diffRotation)
 {
     Fail.IfNotZero(diffX, GameObject, "x");
     Fail.IfNotZero(diffZ, GameObject, "z");
     Fail.IfNotPositive(diffY, GameObject, "y");
     Fail.IfNotPositive(diffRotation, GameObject, "rotation");
 }
Пример #2
0
    protected override void OnUpdateWithDiffs(float diffX, float diffY, float diffZ, float diffRotation)
    {
        totalTime += Time.deltaTime;
        if (diffX > 0 && !isPositiveDiff)
        {
            CheckTime();
        }

        if (diffX < 0 && isPositiveDiff)
        {
            CheckTime();
        }

        Fail.IfNotZero(diffZ, GameObject, "z");
        Fail.IfNotPositive(diffY, GameObject, "y");
    }