Example #1
0
        void Update()
        {
            if (debugCollisionFlags)
            {
                if (time > 0.2f)
                {
                    text.text = characterActor.ToString();

                    time = 0f;
                }
                else
                {
                    time += Time.deltaTime;
                }
            }
        }
Example #2
0
        void Update()
        {
            if (characterActor == null)
            {
                this.enabled = false;
                return;
            }

            if (debugCollisionFlags)
            {
                if (time > 0.2f)
                {
                    text.text = characterActor.ToString();

                    time = 0f;
                }
                else
                {
                    time += Time.deltaTime;
                }
            }
        }