Exemple #1
0
    private void Awake()
    {
        _rigidbody = GetComponent <Rigidbody>();
        pickUp     = GetComponent <AudioSource>();
        if (_rigidbody == null)
        {
            Debug.LogError("Please attatch a rigidbody to this item!");
        }

        _movement = GetComponent <TerrainMovement>();
    }
Exemple #2
0
 public void RemoveTerrainFromSpawnedList(TerrainMovement tm)
 {
     spawnedTerrains.Remove(tm);
 }
Exemple #3
0
    //List<ClickableTile> tilesToWorkWith = new List<ClickableTile>();

    // Use this for initialization
    void Awake()
    {
        instance            = this;
        unitMovementManager = gameObject.GetComponent <TerrainMovement> ();
        GenerateMap();
    }
Exemple #4
0
 void Awake()
 {
     instance = this;
 }