Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Converting MeleeSystem by Brackeys to C# (most likely a silly mistake)

$
0
0
I haven't gotten used to c# syntax or error messages, so this is probably pretty simple to solve. I am trying to replicate the following code in C#:
http://s9.postimg.org/pwco3xt7z/Melee_System_Brackeys.png
(if this link breaks, the video is
)

This is my failed attempt:
Code (CSharp):
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class MeleeSystem : MonoBehaviour {
  5.  
  6.     public int theDamage = 50;
  7.     public float...
Converting MeleeSystem by Brackeys to C# (most likely a silly mistake)

Viewing all articles
Browse latest Browse all 1466670

Latest Images

Trending Articles



Latest Images