예제 #1
0
 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);
     }
 }
예제 #2
0
 void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
     }
     else if (_instance != this)
     {
         Destroy(this);
     }
 }