コード例 #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
ファイル: PureChaser.cs プロジェクト: FinnbarrOC/EspionAge
 protected override void Awake()
 {
     base.Awake();
     rootMotionController = Utils.GetRequiredComponentInChildren <ChildRootMotionController>(this);
     enemy = Utils.GetRequiredComponent <Enemy>(this);
 }