public void OnPotionComplete(ARecipeManager cauldron) { var potionObj = Instantiate(m_potionPrefab, cauldron.transform.position + new Vector3(0, 3, 0), Quaternion.identity); var potion = potionObj.GetComponent <FlyingPotion>(); //Set color var liquidColor = ColorsManager.Get().CauldronLiquidColors[cauldron.Owner.ID]; potion.SetColor(liquidColor); //Set Destination potion.SetDestination(m_audienceInterface); }
protected virtual void Start() { m_storedIngredient = Ingredient.NOT_AN_INGREDIENT; MARecipeManager = GetComponent <ARecipeManager>(); }