Пример #1
0
 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);
     });
 }
Пример #2
0
    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);
    }
Пример #3
0
 public abstract void SetScreenRotation(Byte screenRotation, ISharedDataSerializer.OnSetScreenRotation onFinishDelegate);