IndieGame/client/Assets/Scripts/System/Global/GlobalController.cs
DOBEST\zhaoyingjie f242607587 初始化工程
2024-10-11 10:12:15 +08:00

20 lines
511 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Ether
{
public static class GlobalController
{
/// <summary>
/// 设置玩家输入操作
/// </summary>
public static void SetPlayerInputOperation(bool isInputEnabled)
{
PlayerController playerController = GameObject.FindWithTag("Player").GetComponent<PlayerController>();
playerController?.SetInputOperation(isInputEnabled);
}
}
}