예제 #1
0
 // 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;
 }
예제 #2
0
        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);
            }
        }