void Awake() { if (instance != null) { Destroy(gameObject); } else { instance = this; } }
public void TestTreasureTrove() { var test = new TreasureTrove(PropertyOwner) { IsConcealed = p => true, IsGoldSilverOrCurrency = p => true, SubjectProperty = _property }; var testResult = test.IsValid(_propertyOwner); Assert.IsTrue(testResult); Console.Write(test.ToString()); }
void Start() { instance = this; }