Boss Jump Above you
This commit is contained in:
BIN
Assets/New Terrain 1.asset
Normal file
BIN
Assets/New Terrain 1.asset
Normal file
Binary file not shown.
8
Assets/New Terrain 1.asset.meta
Normal file
8
Assets/New Terrain 1.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bb90d637fa5a642da99b630af5e39341
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 15600000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/New Terrain 2.asset
Normal file
BIN
Assets/New Terrain 2.asset
Normal file
Binary file not shown.
8
Assets/New Terrain 2.asset.meta
Normal file
8
Assets/New Terrain 2.asset.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6007277cfe490427ea53da88a2d31543
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 15600000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Scenes/Scene1-Boss.unity
LFS
Normal file
BIN
Assets/Scenes/Scene1-Boss.unity
LFS
Normal file
Binary file not shown.
7
Assets/Scenes/Scene1-Boss.unity.meta
Normal file
7
Assets/Scenes/Scene1-Boss.unity.meta
Normal file
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4e0c2c5470ba3477ca0849aae9f0b6e7
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
16
Assets/Scripts/MechBoss.cs
Normal file
16
Assets/Scripts/MechBoss.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class MechBoss : MonoBehaviour
|
||||
{
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/MechBoss.cs.meta
Normal file
2
Assets/Scripts/MechBoss.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7f1d4c5acc0624759954b8d3abdb2f6d
|
||||
51
Assets/Scripts/SteampunkBoss.cs
Normal file
51
Assets/Scripts/SteampunkBoss.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class SteampunkBoss : MonoBehaviour
|
||||
{
|
||||
public GameObject Player;
|
||||
|
||||
public Vector3 TargetJumpPosition;
|
||||
public bool setposition = false;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
JumpAttack();
|
||||
}
|
||||
|
||||
void JumpAttack()
|
||||
{
|
||||
if (!setposition)
|
||||
{
|
||||
TargetJumpPosition = Player.transform.position;
|
||||
setposition = true;
|
||||
}
|
||||
transform.position = Vector3.MoveTowards(transform.position, new Vector3(TargetJumpPosition.x, 20, TargetJumpPosition.z), 20 * Time.deltaTime);
|
||||
}
|
||||
|
||||
void RocketAttack()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void LungeAttack()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void SlashAttack()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Block()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/SteampunkBoss.cs.meta
Normal file
2
Assets/Scripts/SteampunkBoss.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d8198e3ebde5469e8ad7d54300da09f
|
||||
Reference in New Issue
Block a user