Exemplo n.º 1
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="entity">実行者</param>
 /// <param name="priority">優先度</param>
 /// <param name="frame">実行フレーム数</param>
 public AITask(Entity entity, int priority, int frame)
 {
     this.player = SSTaskFactory.PlayerUpdateTask.Player;
     this.entity = entity;
     this.priority = priority;
     this.frame = frame;
 }
 public void AddPlayer(EntityPlayer player)
 {
     SSTaskFactory.PlayerUpdateTask.Player = player;
     SSTaskFactory.PlayerDrawTask.Player = player;
     SSTaskFactory.PlayerMoveTask.Player = player;
     SSTaskFactory.PlayerActionTask.Player = player;
     SSTaskFactory.InfoDrawTask.Player = player;
     SSTaskFactory.CollitionTask.AddInteractors(player);
     player.Scene = this;
 }