// Static Method public static GameTextAction Create(GameObject prefab, string text, Vector3 position, Transform parent = null, GameText.Style style = GameText.Style.Default) { GameTextAction action = new GameTextAction(); action.text = text; action.textPrefab = prefab; action.spawnPostion = position; action.parentTransform = parent; action.textStyle = style; return(action); }
public override void Play(GameText.Style style, AnimeCallback endCallback) { // Error Handling if (mAnimator == null) { if (endCallback != null) { endCallback(); } return; } mEndCallback = endCallback; string triggerName = style.ToString(); Debug.Log("TextAnimePlayer: triggerName=" + triggerName); mAnimator.SetTrigger(triggerName); }
public abstract void Play(GameText.Style style, AnimeCallback endCallback);