mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
38 lines
772 B
C#
38 lines
772 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public abstract class LDDropDataItem
|
|
{
|
|
public abstract void CreateDropGoods(Vector3 initPos, Vector3 initDir, bool actDropAnim = true);
|
|
|
|
public LDDropDataItem Clone()
|
|
{
|
|
return (LDDropDataItem)MemberwiseClone();
|
|
}
|
|
|
|
public static LDDropDataItem GetLDDropDataItemByName(string typeName)
|
|
{
|
|
switch (typeName)
|
|
{
|
|
case "HPMedic":
|
|
return new LDDropHPMedic();
|
|
case "SPMedic":
|
|
return new LDDropSPMedic();
|
|
case "EquipItem":
|
|
return new LDDropEquipItem();
|
|
case "Coin":
|
|
return new LDDropCoin();
|
|
case "Boost":
|
|
return new LDDropBoostSpeed();
|
|
case "Crit":
|
|
return new LDDropEnhanceCrit();
|
|
case "Shielded":
|
|
return new LDDropShielded();
|
|
default:
|
|
return null;
|
|
}
|
|
}
|
|
}
|
|
}
|