Ejemplo n.º 1
0
        public override void InitFish(NewCatchFish_FishInfo fishInfo)
        {
            base.InitFish(fishInfo);
            fishInfo = fishInfo;

            //foreach (var item in NewCatChFish_Mgr.Instance.fishConfig)
            //{
            //    if (item.fishKind == fishInfo.FishKind)
            //    {
            //        foreach (var path in item.fishPath)
            //        {
            //            if (path.Key == fishInfo.PathId)
            //            {
            //                fishPath = path.Value;
            //            }
            //        }
            //    }
            //}
            if (fishPath == null)
            {
                Debug.LogError("找不到鱼的路线");
                return;
            }


            OnEnterFishpond += EnterFishpondEvent;
            OnLeavaFishpond += LeaveFishpondEvent;
            //transform.SetParent(NewCatChFish_Mgr.Instance.fishpond.transform);
            fishfsm = new FSM();
            fishfsm.AddState(new StateMove_Temp(), this);
            fishfsm.AddState(new StateFrozen_Temp(), this);
            fishfsm.AddState(new StateDead_Temp(), this);

            fishfsm.Init();
        }
Ejemplo n.º 2
0
        // int ICollectable_Type_Eric.Type { get ; set ; }

        public virtual void InitFish(NewCatchFish_FishInfo fishInfo)
        {
        }