예제 #1
0
        public void ShowText()
        {
            string builtText = "Detected Behavior effects:\n";

            string[] behaviors   = TAnimBuilder.GetAllBehaviorsTags();
            string[] appearances = TAnimBuilder.GetAllApppearancesTags();

            for (int i = 0; i < behaviors.Length; i++)
            {
                builtText += AddEffect(behaviors[i]);
            }

            builtText += "\n\nDetected Appearance effects:\n";

            for (int i = 0; i < appearances.Length; i++)
            {
                builtText += AddAppearanceEffect(appearances[i]);
            }

            textAnimatorPlayer.ShowText(builtText);
        }
예제 #2
0
        private void Awake()
        {
            UnityEngine.Assertions.Assert.IsNotNull(textAnimatorPlayer, $"Text Animator Player component is null in {gameObject.name}");

            TAnimBuilder.InitializeGlobalDatabase();
        }