目录结构调整
This commit is contained in:
33
Assets/Scripts/Fishing2/Entity/Data/Unit/UnitStateArgs.cs
Normal file
33
Assets/Scripts/Fishing2/Entity/Data/Unit/UnitStateArgs.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
namespace NBF.Fishing2
|
||||
{
|
||||
public class UnitStateArgsFactory
|
||||
{
|
||||
public static UnitStateArgs Create(Unit unit, string[] args)
|
||||
{
|
||||
UnitStateArgs ret = null;
|
||||
// return new UnitStateArgs()
|
||||
// {
|
||||
//
|
||||
// }
|
||||
if (ret != null)
|
||||
{
|
||||
ret.SetArgs(args);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class UnitStateArgs
|
||||
{
|
||||
protected string[] Args;
|
||||
|
||||
public void SetArgs(string[] args)
|
||||
{
|
||||
Args = args;
|
||||
OnParseArgs();
|
||||
}
|
||||
|
||||
public abstract void OnParseArgs();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user