예제 #1
0
    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);
    }
예제 #2
0
    protected override void ShootTear(Tear tearPrefab)
    {
        MagmaTear magmaTear = Instantiate(magmaTearPrefab);

        magmaTear.Shoot(this);
    }