
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
30 lines
790 B
C#
30 lines
790 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class PlayerBlackHoleForce : BlackHoleForce
|
|
{
|
|
private PlayerColliderManager _playerColliderManager;
|
|
|
|
protected override void DoAwakeTasks()
|
|
{
|
|
_playerColliderManager = gameObject.GetComponent<PlayerColliderManager>();
|
|
base.DoAwakeTasks();
|
|
}
|
|
|
|
public override void ApplyBlackHoleForce(float appliedForce)
|
|
{
|
|
if (!blackHolePullImmunue && !GameEngine.playerPaused)
|
|
{
|
|
_objectRigidBody.AddForce(-_objectRigidBody.transform.up * appliedForce);
|
|
base.ApplyBlackHoleForce(appliedForce);
|
|
}
|
|
}
|
|
|
|
public override void HitBlackHole()
|
|
{
|
|
_playerColliderManager.PlayerHit(true);
|
|
base.HitBlackHole();
|
|
}
|
|
}
|