public void SetParent(Object parent, ref ResourcesHUD resourcesHUD)
 {
     this.gameField = parent as GameField;   //Yeah, I know, we can pass GameField -object directly, but it's not fun at all
     this.gameField.OnNotEmptyClicked += new GameField.NotEmptyClicked(gameField_OnNotEmptyClicked);
     this.resourcesHUD = resourcesHUD;
 }
Esempio n. 2
0
 public void SetParent(Object parent)
 {
     this.gameField = parent as GameField;
     this.gameField.OnPersonClicked          += new GameField.PersonClecked(gameField_OnPersonClicked);
     this.gameField.OnTargetForPersonClicked += new GameField.TargetForPersonClicked(gameField_OnTargetForPersonClicked);
 }