// Use this for initialization public virtual void Start() { movement = GetComponentInParent <Movement>(); species = GetComponentInParent <Species>(); prop = GetComponent <PropertyTracker>(); if (species != null) { if (FoodTags != null) { foreach (string tag in FoodTags) { species.AddFoodTag(tag); } } } }