예제 #1
0
 private void DisplayGettingPlayer()
 {
     if (UICurrent.InvokeRequired) // if it's not coming in on the UI thread, move the work to the UI thread.
     {
         UICurrent.BeginInvoke((Action)DisplayGettingPlayer);
         return;
     }
 }
예제 #2
0
    void Awake()
    {
        renderer_ = GetComponent<SpriteRenderer>();

        half1Renderer_ = currentPlayer1.GetComponent<SpriteRenderer>();
        half2Renderer_ = currentPlayer2.GetComponent<SpriteRenderer>();

        half1Current_ = currentPlayer1.GetComponentInChildren<UICurrent>();
        half2Current_ = currentPlayer2.GetComponentInChildren<UICurrent>();

        Reset();
	}