private void Awake() { m_BossController = GetComponentInParent <Boss3_Controller>(); m_NavAgent = GetComponent <NavMeshAgent>(); m_Rb = GetComponent <Rigidbody>(); m_Anim = GetComponentInChildren <Animator>(); m_DamageComp = GetComponent <Damageable>(); m_DamageComp.Del_ReciveDamage = Damaged; m_BT = GetComponent <BehaviorTree>(); m_BB = GetComponent <BBoard>(); }
public void Init() { controller = GetComponent <Boss3_Controller>(); laserManager = GetComponent <LaserManager>(); lookAtTarget = GetComponentInChildren <LookAtTarget>(); animator = GetComponent <Animator>(); audioManager = controller.audioManager; player = controller.player; lookAtTarget.target = player.transform; stLaser = new StandardLaser(laserRef); SetSpreadShotSubtraction(spreadShotSubtraction); //actionList.Add("Idle"); actionList.Add("ShootPlayer"); //actionList.Add("Retaliate"); actionList.Add("RockLaserAttack"); actionList.Add("DesperationAttack"); }