コード例 #1
0
 void Awake()
 {
     pathfindingComponent = this.gameObject.GetComponent <CrowEnemyAIPathfinding>();
     crowEnemyScript      = this.gameObject.GetComponent <CrowEnemy>();
     animationComponent   = this.gameObject.transform.GetComponentInChildren <SkeletonEnemy_Animation>();
     quirkManager         = FindObjectOfType <QuirkManager>();
 }
コード例 #2
0
    private void Awake()
    {
        soundManager = FindObjectOfType <SoundManager>();
        animator     = this.GetComponent <Animator>();

        if (this.gameObject.transform.GetComponentInParent <CrowEnemy>() != null)
        {
            baseCrowClass = this.gameObject.transform.GetComponentInParent <CrowEnemy>();
        }
    }