コード例 #1
0
ファイル: BattleMap.cs プロジェクト: Planfag/VivianPrototype
    public void addEffectText(Vector3 position, string text, Color color)
    {
        EffectText effectText = new EffectText();

        effectText.set(text, position, mainMechanics, color);
        effectsList.Add(effectText);
    }
コード例 #2
0
    public void PoolEffect(int damage, Vector3 position)
    {
        EffectText text = damageEffectPool.ActiveObject(position) as EffectText;

        text.Init(damage.ToString(), damage > 0 ? TextColorType.Green : TextColorType.Red);
    }