Boss Jump Above you

This commit is contained in:
Garrett Kaiser
2026-01-07 15:24:56 -08:00
parent e53a53e48f
commit 6929a4cdb2
10 changed files with 97 additions and 0 deletions

View 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()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 7f1d4c5acc0624759954b8d3abdb2f6d

View 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()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 3d8198e3ebde5469e8ad7d54300da09f