private void Awake() { _rigidbody = GetComponent <Rigidbody>(); pickUp = GetComponent <AudioSource>(); if (_rigidbody == null) { Debug.LogError("Please attatch a rigidbody to this item!"); } _movement = GetComponent <TerrainMovement>(); }
public void RemoveTerrainFromSpawnedList(TerrainMovement tm) { spawnedTerrains.Remove(tm); }
//List<ClickableTile> tilesToWorkWith = new List<ClickableTile>(); // Use this for initialization void Awake() { instance = this; unitMovementManager = gameObject.GetComponent <TerrainMovement> (); GenerateMap(); }
void Awake() { instance = this; }