Skip to content

Commit

Permalink
fixed intlize problem
Browse files Browse the repository at this point in the history
  • Loading branch information
mranoncoder committed Feb 15, 2023
1 parent d1aa29b commit fe7df3c
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Runtime/AuthenticateUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class AuthenticateUser : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetCollections.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public class GetCollections : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetHistory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class GetHistory : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class GetHolder : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class GetItem : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetItems.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public enum Chains
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
18 changes: 13 additions & 5 deletions Runtime/GetUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class GetUser : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down Expand Up @@ -70,10 +70,18 @@ private void OnEnable()

public static GetUser Initialize(bool destroyAtEnd = true)
{
var _this = new GameObject(AlturaConstants.FeatureName_GetUser).AddComponent<GetUser>();
_this.destroyAtEnd = destroyAtEnd;
_this.onEnable = false;
_this.debugErrorLog = false;

Debug.Log("Hi");
var _this = new GameObject(AlturaConstants.FeatureName_GetUser).AddComponent<GetUser>();

Debug.Log("Hi2");
_this.destroyAtEnd = destroyAtEnd;

Debug.Log("Hi3");
_this.onEnable = false;

Debug.Log("Hi4");
_this.debugErrorLog = false;
return _this;
}

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetUserBalance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class GetUserBalance : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetUserERC20Balance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class GetUserERC20Balance : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetUserItemBalance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class GetUserItemBalance : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down
2 changes: 1 addition & 1 deletion Runtime/GetUsers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class GetUsers : MonoBehaviour
public UnityEvent afterError;

[Header("Run Component when this Game Object is Set Active")]
[SerializeField] private bool onEnable = true;
[SerializeField] private bool onEnable = false;
public bool debugErrorLog = true;
public bool debugLogRawApiResponse = true;

Expand Down

0 comments on commit fe7df3c

Please sign in to comment.