Quantcast
Channel: Answers for "Raycast executing hundreds of times"
Viewing all articles
Browse latest Browse all 4

Answer by meat5000

$
0
0
It stems from your Update void Update () { Messenger.AddListener ("melee attack made", EvaluateAttack); } It keeps evaluating with no condition. When the raycast is true it still keeps evaluating and as the conditions are met it keeps executing subsequent functions, every frame. Put a Debug.Log in Evaluate function. This will show you what I mean.

Viewing all articles
Browse latest Browse all 4

Trending Articles



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