예제 #1
0
 void Start()
 {
     //benim değiştirmem
     replayPlayer = FindObjectOfType <ReplayPlayer>();
     replayPlayer.Add(this);
     frames   = new List <Frame>();
     maxFrame = replayPlayer.maxFrame;
 }
예제 #2
0
 void Start()
 {
     if (player == null)
     {
         player = FindObjectOfType <ReplayPlayer>();
     }
     if (player)
     {
         player.Add(this);
         maxLength = player.maxLength;
         frames    = new List <Frame>();
     }
 }