void RigTraps() { _spikeTrapClusters = spikeTrapClusters.RandomValue; Debug.Log("Laying spike clusters: " + _spikeTrapClusters); for (int i = 0; i < _spikeTrapClusters; i++) { Trapper.LaySpikeTraps(this, this.GetData(), spikeTrapClusterSize.RandomValue); } }
void Awake() { if (_instance == null) { _instance = this; } else if (_instance != this) { Destroy(this); } }