private void OnChangeStateCall(ShipEvenentsType _eventType) { ChangeStateArgs args = new ChangeStateArgs(); args.ChangeState = _eventType; OnChangeState(args); }
protected virtual void OnChangeState(ChangeStateArgs e) { EventHandler <ChangeStateArgs> handler = ChangeState; handler?.Invoke(this, e); }