예제 #1
0
    public override BuffEffect Copy()
    {
        AuraBuffEffect b = new AuraBuffEffect(buffToApply, range);

        foreach (MapCoords coords in effectMap.Keys.ToList())
        {
            b.effectMap.Add(coords, effectMap[coords]);
        }

        return(b);
    }
예제 #2
0
    void PrintAuraEffectVisual(AuraBuffEffect e)
    {
        auraVisuals = new List <GameObject>();

        AuraBuffEffect effect = e;

        foreach (MapCoords coords in effect.effectMap.Keys)
        {
            auraVisuals.Add(Instantiate <GameObject>(prefab, new Vector3(coords.X, coords.Y, 0), Quaternion.identity));
            Debug.Log("Printed AuraVsiual");
        }
    }
    public override void InitPanel(BuffEffect e)
    {
        effect = e as AuraBuffEffect;



        PopulateBuffSelections(effect.buffToApply, dropDown);
        range.text = effect.range + "";



        dropDown.droptDown.onValueChanged.AddListener(delegate { Save(); });
        range.onValueChanged.AddListener(delegate { Save(); });
    }