Exemplo n.º 1
0
    public void trigger_effect_on_unit()
    {
        HexagonCell _cell         = editor.hexGrid.GetCell(Unit_Getting_Attacked.transform.position);
        Spawn_Flash flash_spawn   = GetComponentInChildren <Spawn_Flash>();
        GameObject  flash_hit_obj = flash_spawn.Show_Flash_Hit(Unit_Getting_Attacked);

        re_sort_object_position(_cell, flash_hit_obj.GetComponent <SpriteRenderer>());
    }
Exemplo n.º 2
0
    public void trigger_visual_effect()
    {
        Spawn_Flash flash_spawn = GetComponentInChildren <Spawn_Flash>();

        flash_spawn.Show_Flash();
    }