Added new sounds needed for game
Added blackhole swirl texture and materials Added Magnet, Hunter and Drop core powerups and script overhaul for powerups in general Added Scenes and Cinematic changes for the game, win and death screens Added a score Changed the way enemy spawns work Removed unused scripts
This commit is contained in:
@ -11,6 +11,7 @@ public class MagnetPowerUpEffect : PowerUpEffect
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
_currentGameEngine = FindObjectOfType<GameEngine>();
|
||||
_player = GameEngine.mainPlayer;
|
||||
_playerObjectShared = _player.GetComponent<PlayerObjectShared>();
|
||||
}
|
||||
@ -23,26 +24,16 @@ public class MagnetPowerUpEffect : PowerUpEffect
|
||||
Destroy(coreHolder.GetChild(i).gameObject);
|
||||
}
|
||||
GameObject newSpecialCore = Instantiate(coredVersionGO, coreHolder);
|
||||
PowerUpEffect newMagnetEffect = newSpecialCore.GetComponent<MagnetEmbedPowerUpEffect>();
|
||||
AttachablePowerUpEffect newMagnetEffect = newSpecialCore.GetComponent<MagnetAttachedPowerUpEffect>();
|
||||
_playerObjectShared.AttachPickUp(newMagnetEffect);
|
||||
|
||||
if (_currentGameEngine != null)
|
||||
{
|
||||
_currentGameEngine.QueueDialog(dialogIndex);
|
||||
}
|
||||
}
|
||||
|
||||
public override void ApplyEffect()
|
||||
{
|
||||
}
|
||||
|
||||
public override bool OnUseEffect()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override float CooldownStatus()
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
|
||||
public override bool PowerUpReady()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user