Beispiel #1
0
 void Awake()
 {
     nite = FindObjectOfType(typeof(NiteOpenNet)) as NiteOpenNet;
     selectShape = FindObjectOfType(typeof(SelectShape)) as SelectShape;
     userGui = FindObjectOfType(typeof(UserGuiDeformatory)) as UserGuiDeformatory;
     bouncer = FindObjectOfType(typeof(Bouncer)) as Bouncer;
     ballAnimator = FindObjectOfType(typeof(BallAnimator)) as BallAnimator;
 }
Beispiel #2
0
 void Awake()
 {
     nOn = FindObjectOfType(typeof(NiteOpenNet)) as NiteOpenNet;
     nOn.NiteInitializingEvent += HandleNiteInitializingEvent;
     if (debugHandImage)
     {
         testTexture = new Texture2D(1024,512);
         testTextureRect = new Rect(testTexture.width / 2, testTexture.height / 2, testTexture.width / 2, testTexture.height / 2);
     }
 }
Beispiel #3
0
    void Awake()
    {
        nite = FindObjectOfType(typeof(NiteOpenNet)) as NiteOpenNet;
        userGui = FindObjectOfType(typeof(UserGuiDeformatory)) as UserGuiDeformatory;
        handDetector = FindObjectOfType(typeof(HandDetector)) as HandDetector;
        nite.NiteInitializingEvent += HandleNiteInitializingEvent;

        state = CentralDeformatory.State.Shaping;
        NextState();
    }