void Update() { if (debugCollisionFlags) { if (time > 0.2f) { text.text = characterActor.ToString(); time = 0f; } else { time += Time.deltaTime; } } }
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; } } }