39 lines
1007 B
C#
39 lines
1007 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
[Serializable]
|
|||
|
class KillRequiredSubject : RequiredSubject // Enemy - WTF is this class...
|
|||
|
{
|
|||
|
protected override string MODEL_LOCALIZATION => "Enemies/";
|
|||
|
|
|||
|
[SerializeField]
|
|||
|
public int CurrentAmount;
|
|||
|
|
|||
|
public KillRequiredSubject(RequiredSubject requiredSubject) : base(requiredSubject.RequiredAmount, requiredSubject.RequiredObject) { }
|
|||
|
|
|||
|
public KillRequiredSubject(int requiredAmount, GameObject enemy) : base(requiredAmount, enemy) { }
|
|||
|
|
|||
|
public KillRequiredSubject(int requiredAmount, string enemyName) : base(requiredAmount, enemyName) { }
|
|||
|
|
|||
|
|
|||
|
public void IncreaseAmount()
|
|||
|
{
|
|||
|
Debug.Log("IncreaseAmount");
|
|||
|
CurrentAmount += 1;
|
|||
|
}
|
|||
|
|
|||
|
public void IncreaseAmount(int amount)
|
|||
|
{
|
|||
|
CurrentAmount += amount;
|
|||
|
}
|
|||
|
|
|||
|
public override bool CheckCondition()
|
|||
|
{
|
|||
|
return CurrentAmount >= RequiredAmount;
|
|||
|
}
|
|||
|
}
|