- Home /
How to add javascript classes?
Hi, I want to implement a combo system in my game and i Have seen that in the wiki there is a script for doing it (link here = http://www.unifycommunity.com/wiki/index.php?title=KeyCombo ), the script consist in two files, a clase and the script.
How I have to use the class? I need to attach this script to a class? Or what I have to do?
Lot of thanks in advance for the help
Answer by Graham-Dunnett · May 22, 2011 at 09:09 PM
Just add the KeyCombo.js to your Unity project, and then add the code shown in the implementation to which ever script file you need to have that code in. Think of this second code snippet as showing you how to use the class.
Ups there was a problem with the link, I'll try it now, if works I'll vote your answer. Lot of thanks
Your answer
Follow this Question
Related Questions
Collecting blocks - Create Combos? 0 Answers
Why can't i access my c# class from javascript 1 Answer
Creating Custom Script Classes 2 Answers
Creating a dynamic array of objects of custom class 1 Answer