60 lines
1.7 KiB
C#
60 lines
1.7 KiB
C#
|
using System;
|
|||
|
using EvolutStudio.tinysAPI.BaseClasses;
|
|||
|
|
|||
|
namespace EvolutStudio
|
|||
|
{
|
|||
|
namespace VRPortfolioWork
|
|||
|
{
|
|||
|
namespace Components
|
|||
|
{
|
|||
|
public class SimpleTooltipComponent : BaseClassComponent
|
|||
|
{
|
|||
|
#region Public Attributes
|
|||
|
|
|||
|
// reference to the current tooltip state
|
|||
|
public bool currentTooltipState;
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Private Attributes
|
|||
|
|
|||
|
// Add your private attributes
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Public Functions
|
|||
|
|
|||
|
public override void ValidationFailed(string notification)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
|
|||
|
public override void ValidationSucceeded(string notification)
|
|||
|
{
|
|||
|
if (
|
|||
|
notification.Equals(BaseClassNotification.POINTERCLICKEVENT) ||
|
|||
|
notification.Equals(BaseClassNotification.POINTERENTEREVENT) ||
|
|||
|
notification.Equals(BaseClassNotification.POINTEREXITEVENT))
|
|||
|
{
|
|||
|
// update material from model
|
|||
|
gameObject.transform.GetChild(0).gameObject.SetActive(currentTooltipState);
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
// Use this for initialization
|
|||
|
public override void Init()
|
|||
|
{
|
|||
|
_ComponentsArrayIndex = modulInstance.View.RegisterComponent(this);
|
|||
|
}
|
|||
|
|
|||
|
#endregion
|
|||
|
|
|||
|
#region Private Functions
|
|||
|
|
|||
|
// Add your private functions
|
|||
|
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|