Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

public class rotateThis extends MonoBehaviour implements IBulletTime-----grammer mistakes

Discussion in 'Scripting' started by JohnSonLi, Jan 13, 2015.

  1. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    I have used C# for a long time now, it is hard for me to understand the grammer of js.
    I writed an interface IBulletTime in a C#file placed in Plugins folder.
    someone later imported a js, now I have to modified it to support my interface.
    someone tells me how?
     
    Last edited: Jan 13, 2015
  2. Todd-Wasson

    Todd-Wasson

    Joined:
    Aug 7, 2014
    Posts:
    1,077
    Change line #865 in your script to "display source code and get more specific if you want anyone to know what you're talking about."

    Sorry, couldn't resist. ;)
     
  3. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    title is the source code , It already has a problem.......
     
  4. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    Code (csharp):
    1. public class rotateThis extends MonoBehaviour
    OK
    Code (csharp):
    1. public class rotateThis implements IBulletTime
    MaybeOk(I will check later)
    but when I combine them together...
    Code (csharp):
    1. public class rotateThis extends Mono.. implements IBulletTime
    -----wrong!
     
  5. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    OK,problem solved!!!!