// The App class accepts its commands via constructor-injection public App(CircleCommand circleCommand, TriangleCommand triangleCommand, SquareCommand squareCommand, NoneCommand noneCommand) { _circleCommand = circleCommand; _triangleCommand = triangleCommand; _squareCommand = squareCommand; _noneCommand = noneCommand; }
internal void Circlemove(float startDistance, float startAngle, params float[] args) { CircleCommand cmd = CommandManager.Instance.CreateCommand("circlemove") as CircleCommand; cmd.Load(startDistance, startAngle, args); if (cmd.Execute(m_Instance, m_DeltaTime) == ExecResult.Parallel) { m_Instance.ParallelCommands.Add(cmd); } }