ReplaySystem.Start C# (CSharp) 메소드

Start() 개인적인 메소드

private Start ( ) : void
리턴 void
    void Start()
    {
        rigidBody = GetComponent<Rigidbody> ();
        manager = GameObject.FindObjectOfType<GameManager> ();
    }

Usage Example

예제 #1
0
파일: KinectReplay.cs 프로젝트: Dsalce/TFG
 public void Start()
 {
     if (Started)
     {
         throw new Exception("KinectReplay already started");
     }
     Started = true;
     if (colorReplay != null)
     {
         colorReplay.Start(); colorReplay.FrameReady += frame => synchronizationContext.Send(state =>
         {
             if (ColorImageFrameReady != null)
             {
                 ColorImageFrameReady(this, new KinectRecorder.Replay.ToolBox.ReplayColorImageFrameReadyEventArgs {
                     ColorImageFrame = frame
                 });
             }
         }, null);
     }
     if (depthReplay != null)
     {
         depthReplay.Start(); depthReplay.FrameReady += frame => synchronizationContext.Send(state =>
         {
             if (DepthImageFrameReady != null)
             {
                 DepthImageFrameReady(this, new ToolBox.ReplayDepthImageFrameReadyEventArgs {
                     DepthImageFrame = frame
                 });
             }
         }, null);
     }
     if (skeletonReplay != null)
     {
         skeletonReplay.Start(); skeletonReplay.FrameReady += frame => synchronizationContext.Send(state =>
         {
             if (SkeletonFrameReady != null)
             {
                 SkeletonFrameReady(this, new ToolBox.ReplaySkeletonFrameReadyEventArgs {
                     SkeletonFrame = frame
                 });
             }
         }, null);
     }
 }