20 lines
511 B
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|