コード例 #1
0
ファイル: AIController.cs プロジェクト: Phobez/Gamesmith
    private float stateCheckCD; //cooldown for state checking
    //private EnemyState state;

    // Start is called before the first frame update
    private void Start()
    {
        strategicEnemy = FindObjectOfType <StrategicEnemyHandler>();
        agent          = GetComponent <NavMeshAgent>();
        animator       = GetComponent <Animator>();

        weaponManager = GetComponent <WeaponManager>();
        entity        = GetComponent <Entity>();
        entity.SetUp();

        sqrDetectionRange = detectionRange * detectionRange;
    }
コード例 #2
0
 private void Awake()
 {
     instance = this;
 }