コード例 #1
0
    private void Start()
    {
        _agent   = GetComponent <NavMeshAgent>();
        _myStats = GetComponent <EnemyStats>();
        _anim    = GetComponent <Animator>();

        _healthCanvas = GetComponentInChildren <HealthCanvasController>();

        StartCoroutine(FindWall());
    }
コード例 #2
0
    private void Start()
    {
        _agent        = GetComponent <NavMeshAgent>();
        _anim         = GetComponent <Animator>();
        _healthCanvas = GetComponentInChildren <HealthCanvasController>();
        _cam          = Camera.main;

        _lineLeft  = attackLasers[0];
        _lineRight = attackLasers[1];

        _enemyMask = LayerMask.GetMask("Default", "Enemy");
        _wallMask  = LayerMask.GetMask("Default", "Wall");
    }
コード例 #3
0
    private void Start()
    {
        _myStats = GetComponent <WallStats>();

        _healthCanvas = GetComponentInChildren <HealthCanvasController>();
    }