Compare commits

...

3 Commits

Author SHA1 Message Date
Ader Alisma 01
78c98ac94e Fixed detection 2025-07-13 19:19:07 -04:00
Ader Alisma 01
3ae0de86ba Changed creepling to be an array 2025-07-13 18:28:34 -04:00
Ader Alisma 01
eef09242a8 Main mechanic done 2025-07-13 18:13:05 -04:00
6 changed files with 1482 additions and 0 deletions

View File

@ -0,0 +1,23 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: eb0795e326609f0499365f5b65c2b5cd, type: 3}
m_Name: WaveConfig_Creeper_Test
m_EditorClassIdentifier:
_constantSpawn:
- _enemy: {fileID: 80204295746100150, guid: 1be769d6ef642314b8846bed35e7297c, type: 3}
_count: 20
_nestedGroupSpawn:
- groupSpawn:
- _enemy: {fileID: 80204295746100150, guid: 2def22091e1ff0d43abe2797c18a2fda, type: 3}
_count: 2
triggerTime: 0.5
_gameDuration: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 660102a48ad7d2244ab404cfc1f6a573
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 2def22091e1ff0d43abe2797c18a2fda
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Creeper : Opponent
{
[SerializeField]
private GameObject[] creeplings;
[SerializeField]
private float creeplingsSpawnRange = 2f;
public override void Death()
{
for (int i = 0; i < creeplings.Length; i++)
{
float randomX = Random.Range(0f, creeplingsSpawnRange) + transform.position.x;
Vector3 spawnPosition = new Vector3(randomX, transform.position.y, transform.position.z);
Instantiate(creeplings[i], spawnPosition, Quaternion.identity);
}
base.Death();
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f89e6964a347fce48a22f42c1c23416c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: