Quantcast
Channel: Questions in topic: "melee"
Viewing all articles
Browse latest Browse all 201

can anyone help me? CS8025

$
0
0
using UnityEngine; using System.Collections; var TheDamage : int = 50; var Distance : float; function Update() { If(Input.GetBottonDown("Fire1")) { var hit : RaycastHit if (Physics.Raycast(transform.position, transform.TransformDirection(Vector3.forward), hit)) { Distance = hit.distance; hit.transform.SendMessage("ApplyDamage", TheDamage, SendMessageOptions.DontRequireReceiver); } } }

Viewing all articles
Browse latest Browse all 201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>