示例#1
0
 public void Awake()
 {
     unitStatesDic      = new Dictionary <int, UnitStateDelta>();
     unitProperty       = new Dictionary <Type, IProperty>();
     simulaterComponent = Game.Scene.GetComponent <CommandSimulaterComponent>();
     unit = GetParent <Unit>();
 }
 public void Awake()
 {
     unitStatesDic      = new Dictionary <int, List <ICommandResult> >();
     unitProperty       = new Dictionary <Type, IProperty>();
     simulaterComponent = Game.Scene.GetComponent <CommandSimulaterComponent>();
     AdjustRemoteEstimatedFrame();
     unit = GetParent <Unit>();
 }
 public void Awake()
 {
     currCommands = new Dictionary <Type, Command>();
     unit         = GetParent <Unit>();
     if (unit == null)
     {
         Log.Debug("获取不到Unit");
     }
     simulaterComponent = Game.Scene.GetComponent <CommandSimulaterComponent>();
     unitState          = unit.GetComponent <UnitStateComponent>();
 }