// Start is called before the first frame update new void Start() { base.Start(); Ai = new PredetorAi(this); Diet.Add("wolf"); Diet.Add("sheep"); Diet.Add("rabbit"); tag = "bear"; //GetComponent<Renderer>().material.SetColor("_Color", Color.black); Speed = 125.0f; ChaseSpeed = 200.4f; StarvationLimit = 100f; nutrition = 7.5f; }
public void AddSelectedFoodItemToDietPlan() { if (SelectedFoodItem == null) { return; } var item = new DietPlanItem { Food = SelectedFoodItem, Mass = 10, FoodTimes = FoodTimes }; Diet.Add(item); }