IndieGame/client/Assets/Scripts/System/Global/GlobalController.cs

20 lines
511 B
C#
Raw Normal View History

2024-10-11 10:12:15 +08:00

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);
}
}
}