Esempio n. 1
0
    /// <summary>
    /// Removes unit's Combat-given UI tags.
    /// </summary>
    /// <param name="unit">the unit within Combatants which acts as an indexer.</param>
    private void Kill(UnitBehavior unit)
    {
        //remove from fighters list.
        //Debug.Log("Kill_ started");
        ActiveCombatants.Remove(unit);
        //clean up actions
        unit.ClearCombatActionQueue();

        /*
         * //remove it's health over target entity.
         * if (unit.gameObject.GetComponent<HealthOverTarget>())
         * {
         *  Destroy(unit.gameObject.GetComponent<HealthOverTarget>());
         * }
         */
        //Debug.Log("Kill_ Ended");
    }