コード例 #1
0
 // Use this for initialization
 void Start()
 {
     _surtAC    = GetComponent <Surt_AnimationController>();
     _transform = GetComponent <Transform>();
     _rb        = GetComponent <Rigidbody2D>();
     _attack    = GetComponentInChildren <Surt_Attack>();
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     _movement          = GetComponentInParent <Surt_Movement>();
     _trigger           = GetComponentInChildren <Surt_AttackTrigger>();
     _surtAC            = GetComponentInParent <Surt_AnimationController>();
     _hp                = GetComponentInParent <Enemy_HP>();
     _specialPoint      = GameObject.Find("SurtSpecialPoint");
     _transform         = _movement.GetComponent <Transform>();
     _cooldownTimer     = _attackCooldown;
     _ps                = GetComponentsInChildren <ParticleSystem>();
     _source            = GetComponent <AudioSource>();
     _camShake          = FindObjectOfType <CameraShake>();
     _fireSpawns        = _fireSpawnObj.GetComponentsInChildren <Transform>();
     _projectiles       = new List <GameObject>();
     _rainIntervalTimer = _rainInterval;
     SetupProjectiles();
 }