NLDClient-yudde/ProjectNLD/Assets/Code/Scripts/Gameplay/FakeFight/CmpFakeStart.cs

45 lines
1.1 KiB
C#

using System;
using UnityEngine;
namespace Gameplay.FakeFight
{
public class CmpFakeStart : MonoBehaviour
{
// 使用全角色
public bool useFullCharacters;
// 己方无敌
public bool selfInvincible;
// 敌方无敌
public bool enemyInvincible;
//使用测试编队
public bool useTestTeam;
[Header("使用新的登录窗口")]
public bool useNewLoginWindow;
private void Awake()
{
#if SDK_POCO
if (!gameObject.TryGetComponent(out PocoManager pocoManager))
gameObject.AddComponent<PocoManager>();
#endif
}
private void Start()
{
#if UNITY_EDITOR
SROptions.Current.UseFullCharacters = useFullCharacters;
SROptions.Current.SelfUnbeatable = selfInvincible;
SROptions.Current.EnemyUnbeatable = enemyInvincible;
SROptions.Current.UseTestTeam = useTestTeam;
GameStartLoading.newMethodLogin = useNewLoginWindow;
#endif
}
}
}