示例#1
0
 public EvasionScript(Nanobot target, Vector2 offset, float time, float transitionTime)
 {
     _target = target;
     _time = time;
     _offset = offset;
     _transitionTime = transitionTime;
 }
示例#2
0
 public MoveNanobotScript(Nanobot target, Vector2 offset, float time)
 {
     _target = target;
     _time = time;
     _offset = offset;
 }
示例#3
0
文件: Player.cs 项目: sergik/Cardio
 private void CreateNanobots(int nanobotsCount)
 {
     Nanobots = new List<Nanobot>();
     for (int i = 0; i < nanobotsCount; i++)
     {
         var bot = new Nanobot
         {
             GroupPosition = new Vector2(i % 2 * 100, i * 75 - 75)
         };
         Nanobots.Add(bot);
     }
 }
示例#4
0
 protected virtual void LoadComponent()
 {
     Component = new Nanobot();
     Component.WorldPosition = Position + new Vector2(200, 15);
 }