52 lines
905 B
C#
52 lines
905 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|