Added new script: GateStateHandler.cs