Пример #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);
     }
 }