33 lines
830 B
C#
33 lines
830 B
C#
using System;
|
|
using Data;
|
|
using Managers;
|
|
using UnityEngine;
|
|
|
|
namespace Test
|
|
{
|
|
public class TempAnimationTest:MonoBehaviour
|
|
{
|
|
|
|
public string testMessage="测试消息";
|
|
public PromptDisplayCategory displayCategory;
|
|
public Color messsageColor = Color.white;
|
|
private void Start()
|
|
{
|
|
|
|
}
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetMouseButtonDown(0))
|
|
{
|
|
TemporaryAnimationManager.Instance.GenerateTemporaryAnimation("1,2,3,4,5,1,2,3,4,5",
|
|
Camera.main.ScreenToWorldPoint(Input.mousePosition));
|
|
}
|
|
|
|
if (Input.GetMouseButtonDown(1))
|
|
{
|
|
MessageManager.Instance.DisplayMessage(testMessage,displayCategory,messsageColor);
|
|
}
|
|
}
|
|
}
|
|
} |