32 lines
681 B
C#
32 lines
681 B
C#
using System;
|
|
using AibisDream.Framework;
|
|
using AibisDream.Kit;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
public class BubbleSlot : MonoBehaviour
|
|
{
|
|
[SerializeField] private BubbleSlotData data;
|
|
|
|
public BubbleSlotData Data
|
|
{
|
|
get
|
|
{
|
|
data.slotPosition = CameraKit.GetScreenPos(transform.position);
|
|
return data;
|
|
}
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public struct BubbleSlotData
|
|
{
|
|
[HideInInspector] public Vector3 slotPosition;
|
|
public ActorRole actorRole;
|
|
public int idx;
|
|
public bool hasActorName;
|
|
public int maxCharNum;
|
|
}
|
|
}
|