Add base classes and properties
This commit is contained in:
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:
|
||||
Reference in New Issue
Block a user