How to Implementing The Command Pattern?

  1. Use Code Tags:
    Using code tags properly

  2. What makes you think the command pattern is going to reduce how much time you’re going to spend scripting?

For reference, the command pattern:

  1. Why write 2 scripts if they do the same thing? Have 1 script and attach that same script to each GameObject that you want to do the same thing.

Instead of showing us some pseudo-code with no real meaning. How about you explain what you’re actually attempting to accomplish? Instead of picking a random design pattern and assuming it’ll help you… it might, who knows… I can’t say since I don’t know what you’re actually attempting to accomplish.

4 Likes