Made the annimation adaptive
This commit is contained in:
@@ -68,7 +68,14 @@ namespace InterfaceOff.WorldScene
|
|||||||
transform.rotation = Quaternion.Euler(rotation.x, rotation.y, 0);
|
transform.rotation = Quaternion.Euler(rotation.x, rotation.y, 0);
|
||||||
|
|
||||||
/* Updates the blocking state */
|
/* Updates the blocking state */
|
||||||
SetAnimationState(!Frames[FrameIndex].ShootGun);
|
if (ActiveWindowSpawner.SpawnedWindowCount < MAX_WINDOWS)
|
||||||
|
{
|
||||||
|
SetAnimationState(!Frames[FrameIndex].ShootGun);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetAnimationState(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user