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

37 lines
820 B
C#

using System;
using UnityEngine;
namespace Gameplay.FakeFight
{
public class CmpFakeStart : MonoBehaviour
{
// 己方无敌
public bool selfInvincible;
// 敌方无敌
public bool enemyInvincible;
[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.SelfUnbeatable = selfInvincible;
SROptions.Current.EnemyUnbeatable = enemyInvincible;
GameStartLoading.newMethodLogin = useNewLoginWindow;
#endif
}
}
}