// 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);
        }
示例#2
0
        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);
        }
示例#3
0
 public abstract void Play(GameText.Style style, AnimeCallback endCallback);