init
This commit is contained in:
27
Assets/TcgEngine/Scripts/Effects/EffectClearTemp.cs
Normal file
27
Assets/TcgEngine/Scripts/Effects/EffectClearTemp.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using TcgEngine.Gameplay;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
/// <summary>
|
||||
/// Clear temporary array of player's card
|
||||
/// </summary>
|
||||
|
||||
[CreateAssetMenu(fileName = "effect", menuName = "TcgEngine/Effect/ClearTemp ", order = 10)]
|
||||
public class EffectClearTemp : EffectData
|
||||
{
|
||||
public override void DoEffect(GameLogic logic, AbilityData ability, Card caster)
|
||||
{
|
||||
Player player = logic.GameData.GetPlayer(caster.player_id);
|
||||
player.cards_temp.Clear();
|
||||
}
|
||||
|
||||
public override void DoEffect(GameLogic logic, AbilityData ability, Card caster, Card target)
|
||||
{
|
||||
Player player = logic.GameData.GetPlayer(caster.player_id);
|
||||
player.cards_temp.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user