feature: Added remove last emoji ability
This commit is contained in:
parent
df2fa8aed8
commit
c010ef24a4
4 changed files with 316 additions and 0 deletions
16
Assets/Scripts/Messaging/Composer/UndoButton.cs
Normal file
16
Assets/Scripts/Messaging/Composer/UndoButton.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Messaging.Composer {
|
||||
public class UndoButton : MonoBehaviour {
|
||||
private InputField _inputField;
|
||||
|
||||
private void Awake() {
|
||||
_inputField = FindObjectOfType<InputField>();
|
||||
}
|
||||
|
||||
public void UndoClick() {
|
||||
_inputField.RemoveEmoji();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue