mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 05:17:13 +08:00
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);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|