Beispiel #1
0
        /// <summary>
        /// Boss Behavior 초기화
        /// </summary>
        public virtual void Init()
        {
            OnHit   = new UnityEvent();
            _boss   = GetComponent <BaseBoss>();
            _player = FindObjectOfType <PlayerController>();
            _eraser = BulletEraser.Create(_eraserPrefab, this.gameObject);

            if (_eraser == null)
            {
                Debug.LogWarning("eraser가 할당되지 않았습니다.");
            }
        }
Beispiel #2
0
 public override void Init()
 {
     _boss       = GetComponent <BaseBoss>();
     _bossSprite = GetComponent <SpriteRenderer>();
     _boss.BossBehavior.OnHit.AddListener(OnHit);
 }