public void Init(MagmaTear tear) { gameManager = tear.gameManager; base.Init(); GetSpriteRenderer(); transform.rotation = Quaternion.Euler(0, 0, tear.angle); transform.position = tear.transform.position; SetSprite(tear.spriteIndex); }
protected override void ShootTear(Tear tearPrefab) { MagmaTear magmaTear = Instantiate(magmaTearPrefab); magmaTear.Shoot(this); }