test content
What is the Arc Client?
Install Arc

can someone fix this for me

heavenx2bladeheavenx2blade Member Posts: 3 Arc User
using UnityEngine;
using System.Collections;

public class player: MonoBaviour
{

public string name;

public int health;

public int Damage;

public float range;

public static opponent;

void Start ()
{
attack ();
}

void Update ()
{
Attack ();
}

void Attack()
{
if (Input.getKeyUp(KeyCode.Q))

if (opponent != null && Vector3.Distance(opponent.position, transform.position < range)


(opponent.GetComponent().GetHit(damage))

Comments

Sign In or Register to comment.