private void Start() { rb = GetComponent <Rigidbody2D>(); powerUp = GetComponent <PowerUpSpawnSystem>(); slash = GetComponent <SlashSystem>(); slashRateDefault = slash.slashRate; facingRight = true; realSpeed = speed; }
private void Awake() { player = GameObject.FindGameObjectWithTag("Player").GetComponent <SlashSystem>(); gameOver = GameObject.FindGameObjectWithTag("GO").GetComponent <GameOverSystem>(); }