Skip to content

Commit

Permalink
Update RoverAntiGravitySystemModule.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0Kerbal committed Dec 16, 2022
1 parent d204bd3 commit 9b925c5
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions source/RoverAntiGravitySystemModule.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
using System;
/* Rover Anti Gravity System
* Copyright (C) 2015 Lunatic Aeronautics (ximrm and Tuareg)
* Copyright (C) 2020 zer0Kerbal
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Expand Down Expand Up @@ -112,7 +131,8 @@ public string[] GetCelestials()
Celestials[14] = Localizer.Format("#autoLOC_910039"); // Eeloo^N
return Celestials;
}

/// <summary>SwitchEmissives</summary>
/// <param name="on"></param>
public void SwitchEmissives(bool on)
{
if (on)
Expand All @@ -127,7 +147,6 @@ public void SwitchEmissives(bool on)
}
}


public override void OnStart(PartModule.StartState state)
{
base.OnStart(state);
Expand All @@ -150,7 +169,6 @@ public override void OnStart(PartModule.StartState state)
SwitchEmissives(isOn);
//this.gameObject.GetChild("buttonGreen").GetComponent<Renderer>().material.SetColor("_EmissiveColor", Color.black);
//this.gameObject.GetChild("buttonRed").GetComponent<Renderer>().material.SetColor("_EmissiveColor", Color.red);

}

public override void OnActive()
Expand Down

0 comments on commit 9b925c5

Please sign in to comment.