Пример #1
0
        protected override void Awake()
        {
            base.Awake();

            chaser    = Utils.GetRequiredComponent <Chaser>(this);
            responder = Utils.GetRequiredComponent <Responder>(this);
            searcher  = Utils.GetRequiredComponent <Searcher>(this);
            patroller = Utils.GetRequiredComponent <Patroller>(this);
            waiter    = Utils.GetRequiredComponent <Waiter>(this);
            animator  = Utils.GetRequiredComponentInChildren <ChildRootMotionController>(this);
            enemy     = Utils.GetRequiredComponent <Enemy>(this);
        }
Пример #2
0
 protected override void Awake()
 {
     base.Awake();
     rootMotionController = Utils.GetRequiredComponentInChildren <ChildRootMotionController>(this);
     enemy = Utils.GetRequiredComponent <Enemy>(this);
 }