Beispiel #1
0
 private void StopAllUnits()
 {
     foreach (var Unit in MouseManager.Current.Selections)
     {
         Unit.GetComponent <CommandManager>().AddCommand(Cmd_Stop.New(Unit.gameObject));
     }
 }
Beispiel #2
0
    public static Cmd_Stop New(GameObject prGameObject)
    {
        Cmd_Stop newcommand = prGameObject.AddComponent <Cmd_Stop>();

        return(newcommand);
    }