예제 #1
0
        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);
        }
예제 #2
0
 protected virtual void Start()
 {
     m_storedIngredient = Ingredient.NOT_AN_INGREDIENT;
     MARecipeManager    = GetComponent <ARecipeManager>();
 }