private void OnDrawGizmosSelected() { if (!m_CreatureDebug.Gizmos.Enabled || !this.enabled) { return; } m_CreatureDebug.Init(gameObject); /* * if( ready ) * StartCoroutine( DoDrawGizmosSelected() ); */ m_CreatureDebug.Gizmos.DrawHome(); m_CreatureDebug.Gizmos.DrawOutpost(); m_CreatureDebug.Gizmos.DrawEscort(); m_CreatureDebug.Gizmos.DrawPatrol(); m_CreatureDebug.Gizmos.DrawInteraction(); }
/// <summary> /// Draws the gizmos. /// </summary> /// <param name="_enabled">If set to <c>true</c> enabled.</param> public override void DrawGizmos(bool _enabled) { if (!this.enabled || !_enabled) { return; } m_CreatureDebug.Init(this); m_CreatureDebug.Gizmos.DrawOwnerGizmos(GizmoColor); if (!m_CreatureDebug.Gizmos.Enabled) { return; } m_CreatureDebug.Gizmos.DrawHome(); m_CreatureDebug.Gizmos.DrawOutpost(); m_CreatureDebug.Gizmos.DrawEscort(); m_CreatureDebug.Gizmos.DrawPatrol(); m_CreatureDebug.Gizmos.DrawInteraction(); }