Esempio n. 1
0
    public SceneCatAIStateManager(SceneCat creep)
        : base(creep)
    {
        EventListener.AddListener(ObjectEvent.CallCat, delegate(GameObject gameObject) {
            AIObjectParam param = new AIObjectParam(gameObject);
            SetState <CatRunRaoTouState>(param);
            _CallCat = true;
        });

        EventListener.AddListener(ObjectEvent.CallEat, delegate(GameObject gameObject) {
            AIObjectParam param = new AIObjectParam(gameObject);
            SetState <CatRunEatState>(param);
            _CallEat = true;
        });
    }
Esempio n. 2
0
 public override void SetUserData(AIParam data)
 {
     Param = data as AIObjectParam;
 }