Example #1
0
 // Called when the virtual button has just been pressed:
 public void OnButtonPressed(VirtualButtonBehaviour vb)
 {
     DPanel.Add(this, string.Format("Virtual button was <color=red>click</color> with name <color=blue>[]</color>", vb.name));
     spawner.SpawnNewUnit();
 }