Beispiel #1
0
        /// <summary>
        /// 制作鸡尾酒
        /// </summary>
        public virtual void CreateCocktail(int index, Vector3 pos, Quaternion quat, uint drinkerID)
        {
            L_Item_Cocktail cocktail = GameObject.Instantiate(m_CocktailPrefabs[0], pos, quat) as L_Item_Cocktail;

            cocktail.GetAttribute("level").Value = 1;             // 临时(材料等级、调酒师等级、熟练度)
            GameEventMachine.SendEvent(GameEventID.Event_Barman_CreateCocktail, drinkerID, cocktail.ID);
        }
 //
 public override void OnStart()
 {
     drinker  = gameObject.GetComponent <L_Character_Drinker> ();
     cocktail = L_ActorManager.It.Find <L_Item_Cocktail> (drinker.CocktailID);
 }