mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-29 23:40:23 +00:00
23 lines
506 B
C#
23 lines
506 B
C#
using UnityEngine;
|
|
|
|
namespace SanAndreasUnity.Behaviours
|
|
{
|
|
|
|
public class CharacterModelChanger : MonoBehaviour
|
|
{
|
|
public KeyCode actionKey = KeyCode.P;
|
|
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(actionKey) && GameManager.CanPlayerReadInput())
|
|
{
|
|
if (Ped.Instance != null)
|
|
{
|
|
Chat.ChatManager.SendChatMessageToAllPlayersAsLocalPlayer("/skin");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|