public void ChangeSkin() { // Switch Mechanic later for switching skins, need icons. if (this._currentSkin == this._previousSkin) { return; } TileManager.instance.ChangeSkin(this._currentSkin); this.mainMenu.BroadcastMessage("SetupSkin"); this.levelSelect.BroadcastMessage("SetupSkin"); this.instructions.BroadcastMessage("SetupSkin"); this.credits.BroadcastMessage("SetupSkin"); this._previousSkin = this._currentSkin; }
void Start() { this._currentSkin = TileManager.instance.CurrentSkin; this._previousSkin = this._currentSkin; }
public void ChangeSkin() { // Switch Mechanic later for switching skins, need icons. if(this._currentSkin == this._previousSkin) return; TileManager.instance.ChangeSkin(this._currentSkin); this.mainMenu.BroadcastMessage("SetupSkin"); this.levelSelect.BroadcastMessage("SetupSkin"); this.instructions.BroadcastMessage("SetupSkin"); this.credits.BroadcastMessage("SetupSkin"); this._previousSkin = this._currentSkin; }
public void ChangeSkin(GlobalInfo.Skin skin) { this._hasSkinChanged = true; this._currentSkin = skin; }