public override void SetScreenRotation(Byte screenRotation, ISharedDataSerializer.OnSetScreenRotation onFinishDelegate) { ISharedDataSerializer.LastErrno = DataSerializerErrorCode.Success; global::Debug.Log("Serializer.SetScreenRotation : 1 rotation = " + screenRotation); this.Storage.SetScreenRotation(screenRotation, delegate { global::Debug.Log("Serializer.SetScreenRotation : 2 rotation = " + screenRotation); onFinishDelegate(ISharedDataSerializer.LastErrno); }); }
public void SetScreenRotation(byte screenRotation, Action callback) { ISharedDataSerializer.OnSetScreenRotation func = errNo => { //if (errNo != DataSerializerErrorCode.Success) // ; ScreenRotation = screenRotation; Debug.Log("FF9StateSystem.Serializer.SetScreenRotation: errNo = " + errNo + ", screenRotation = " + screenRotation + ", ScreenRotation = " + ScreenRotation); if (callback == null) { return; } callback(); }; Debug.Log("SettingsState.SetScreenRotation screenRotation = " + screenRotation); FF9StateSystem.Serializer.SetScreenRotation(screenRotation, func); }
public abstract void SetScreenRotation(Byte screenRotation, ISharedDataSerializer.OnSetScreenRotation onFinishDelegate);