private void Awake() { _inputBoss = new BossInput(); _body = GetComponent <Rigidbody2D>(); _groundChecker = transform.Find("GroundCheck").GetComponent <BossGroundChecker>(); _rightGroundChecker = transform.Find("RightGroundCheck").GetComponent <BossRightGroundChecker>(); _wallChecker = transform.Find("WallCheck").GetComponent <BossWallChecker>(); _body.gravityScale = multiplier; attack1Cooldown = attack1TotalCooldown; attack2Cooldown = attack2TotalCooldown; attack3Cooldown = attack3TotalCooldown; timeBetweenSkills = totalSkillTime; tiredCooldown = totalTiredCooldown; }
public void Setup(BossInput _input, Boss.AttackType _type) { type = _type; input = _input; }