/// <summary> /// Unity Awake method /// </summary> private void Awake() { PacketsProcessor.RegisterNestedType(SerializationHelpers.SerializeLoadAgent, SerializationHelpers.DeserializeLoadAgent); PacketsProcessor.SubscribeReusable <Commands.Load>(OnLoadCommand); PacketsProcessor.SubscribeReusable <Commands.Run>(OnRunCommand); PacketsProcessor.SubscribeReusable <Commands.Stop>(OnStopCommand); PacketsProcessor.SubscribeReusable <Commands.EnvironmentState>(OnEnvironmentStateCommand); }
/// <summary> /// Unity Awake method /// </summary> private void Awake() { PacketsProcessor.RegisterNestedType(SerializationHelpers.SerializeLoadAgent, SerializationHelpers.DeserializeLoadAgent); PacketsProcessor.SubscribeReusable <Commands.Load>(OnLoadCommand); PacketsProcessor.SubscribeReusable <Commands.Run>(OnRunCommand); PacketsProcessor.SubscribeReusable <Commands.Stop>(OnStopCommand); PacketsProcessor.SubscribeReusable <Commands.EnvironmentState>(OnEnvironmentStateCommand); PacketsProcessor.SubscribeReusable <Commands.Ping>(OnPingCommand); SetCollisionBetweenSimulationObjects(false); }