Add base classes and properties
This commit is contained in:
8
Assets/Scripts/Core.meta
Normal file
8
Assets/Scripts/Core.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d7e619f08a12564b85d1613f661c401
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
38
Assets/Scripts/Core/BulletManager.cs
Normal file
38
Assets/Scripts/Core/BulletManager.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public enum PatternTypes
|
||||
{
|
||||
DEFAULT
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class PatternMap
|
||||
{
|
||||
public PatternTypes patternType;
|
||||
public Pattern pattern;
|
||||
}
|
||||
public class BulletManager : MonoBehaviour
|
||||
{
|
||||
public PatternTypes patterns;
|
||||
public List<PatternMap> PatternMap = new List<PatternMap>();
|
||||
public Pattern[] activePatterns;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Pattern SpawnPattern(PatternTypes pattern)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/BulletManager.cs.meta
Normal file
11
Assets/Scripts/Core/BulletManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e730f90587ca6724283034e7752fff7a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
52
Assets/Scripts/Core/GameManager.cs
Normal file
52
Assets/Scripts/Core/GameManager.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class GameManager : MonoBehaviour
|
||||
{
|
||||
[Header("Stats")]
|
||||
public int score;
|
||||
public int wave;
|
||||
public int enemiesConsumed;
|
||||
|
||||
[Header("References")]
|
||||
public Settings settings;
|
||||
public UIManager userInterfaceManager;
|
||||
public MusicManager musicManager;
|
||||
public Player player;
|
||||
public GameObject[] pickups;
|
||||
|
||||
[Header("Timing")]
|
||||
public float pickupDelay;
|
||||
public float scoreMultiplier;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void EnemyConsumed()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void PlayerDed()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void IncrementMultiplier(float val)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void IncrementScore(int val)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/GameManager.cs.meta
Normal file
11
Assets/Scripts/Core/GameManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7f12c02a24e0d249b6060ba201115c1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
18
Assets/Scripts/Core/MusicManager.cs
Normal file
18
Assets/Scripts/Core/MusicManager.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class MusicManager : MonoBehaviour
|
||||
{
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/MusicManager.cs.meta
Normal file
11
Assets/Scripts/Core/MusicManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 22d982e1289bbbf48837b0f287279623
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/Scripts/Core/Pattern.cs
Normal file
28
Assets/Scripts/Core/Pattern.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Pattern : MonoBehaviour
|
||||
{
|
||||
public string name = "Default Pattern";
|
||||
public ParticleSystem particleSystem;
|
||||
private Enemy enemy;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void StartPattern(Enemy enemy)
|
||||
{
|
||||
//Start pattern
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Scripts/Core/Pattern.cs.meta
Normal file
11
Assets/Scripts/Core/Pattern.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d509b7549282024c918378f29b5d92f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
20
Assets/Scripts/Core/Settings.cs
Normal file
20
Assets/Scripts/Core/Settings.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Settings : MonoBehaviour
|
||||
{
|
||||
public float musicVolume, sfxVolume;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/Settings.cs.meta
Normal file
11
Assets/Scripts/Core/Settings.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7893080592dea814f8f8e3b0edce2d8a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
19
Assets/Scripts/Core/UIManager.cs
Normal file
19
Assets/Scripts/Core/UIManager.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class UIManager : MonoBehaviour
|
||||
{
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Core/UIManager.cs.meta
Normal file
11
Assets/Scripts/Core/UIManager.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0bbbb4ae9371b4047babdb0a2bb32142
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/Game.meta
Normal file
8
Assets/Scripts/Game.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 217e43aa79bd41443aa86383c28fc7b1
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
39
Assets/Scripts/Game/Enemy.cs
Normal file
39
Assets/Scripts/Game/Enemy.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Enemy : MonoBehaviour
|
||||
{
|
||||
public int baseScore;
|
||||
public PatternTypes[] patterns;
|
||||
public int CurrentPattern;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void Attack()
|
||||
{
|
||||
//Spawn pattern
|
||||
}
|
||||
|
||||
public void Consumed()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void OnPatternFinished()
|
||||
{
|
||||
//Increment pattern
|
||||
}
|
||||
|
||||
}
|
||||
11
Assets/Scripts/Game/Enemy.cs.meta
Normal file
11
Assets/Scripts/Game/Enemy.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: de3c419c34f77c346be26a8da3df1b8c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
11
Assets/Scripts/Game/Pickup.cs
Normal file
11
Assets/Scripts/Game/Pickup.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Pickup : MonoBehaviour
|
||||
{
|
||||
public virtual void OnPickup()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Game/Pickup.cs.meta
Normal file
11
Assets/Scripts/Game/Pickup.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c6b2b170636de74d8fb9e633b83f796
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Scripts/Game/Pickups.meta
Normal file
8
Assets/Scripts/Game/Pickups.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 876832eb39b5522498c7ce23c7c44f85
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
23
Assets/Scripts/Game/Pickups/Extinguisher.cs
Normal file
23
Assets/Scripts/Game/Pickups/Extinguisher.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Extinguisher : Pickup
|
||||
{
|
||||
public override void OnPickup()
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Game/Pickups/Extinguisher.cs.meta
Normal file
11
Assets/Scripts/Game/Pickups/Extinguisher.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b7fc4a204d93a5744884d00c8aa7917c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
41
Assets/Scripts/Game/Player.cs
Normal file
41
Assets/Scripts/Game/Player.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Player : MonoBehaviour
|
||||
{
|
||||
public int health;
|
||||
public float speed;
|
||||
public float trailLength;
|
||||
public ParticleSystem trail;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void DecreaseTrail(float val)
|
||||
{
|
||||
//Decreate trail length (for pickups)
|
||||
}
|
||||
|
||||
public void BulletHit()
|
||||
{
|
||||
//Increate trail length
|
||||
}
|
||||
|
||||
private void OnParticleCollision(GameObject other)
|
||||
{
|
||||
if (other == trail)
|
||||
{
|
||||
//Hit by trail
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/Game/Player.cs.meta
Normal file
11
Assets/Scripts/Game/Player.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f9730b12c97cfc744a4857cbe87723f2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
24
Assets/Scripts/ParticleTest.cs
Normal file
24
Assets/Scripts/ParticleTest.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class ParticleTest : MonoBehaviour
|
||||
{
|
||||
public Pickup pickupTest;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void OnParticleCollision(GameObject other)
|
||||
{
|
||||
Debug.Log(other);
|
||||
}
|
||||
}
|
||||
11
Assets/Scripts/ParticleTest.cs.meta
Normal file
11
Assets/Scripts/ParticleTest.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6e38d54d6c8b9eb4ea631ef6dde1158f
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user