public EvasionScript(Nanobot target, Vector2 offset, float time, float transitionTime) { _target = target; _time = time; _offset = offset; _transitionTime = transitionTime; }
public MoveNanobotScript(Nanobot target, Vector2 offset, float time) { _target = target; _time = time; _offset = offset; }
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); } }
protected virtual void LoadComponent() { Component = new Nanobot(); Component.WorldPosition = Position + new Vector2(200, 15); }