This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Make sure we're using all available stuff | |
using System; | |
using UnityEngine; | |
namespace PraiseTheSun | |
{ | |
//Inherit ModuleScienceExperiment stuff | |
public class SolarExperiment : ModuleScienceExperiment{ | |
// Check if you're around the Sun, and check height from the Surface, then post the m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ACQUIRE_FREQ = 1000; | |
// Attempt to acquire the lock. Returns an Observable that emits the relative | |
// time of the lease if acquired, and undefined if the attempt fails. | |
// | |
// The currentLease parameter gives the current lease time (used to compare | |
// when re-acquiring an already held lock) or is undefined when acquiring for | |
// the first time. | |
function tryAcquire(currentLease?): Observable<number> { | |
// attempt to acquire the lock... |