예제 #1
0
 // Use this for initialization
 void Start()
 {
     rb           = GetComponent <Rigidbody> ();
     rollingDice1 = GameObject.FindObjectOfType <DiceCheckZoneScript1>();
     diceText     = GameObject.FindObjectOfType <DiceNumberTextScript>();
     Player1Dice1 = GameObject.FindWithTag("Player1").GetComponent <Player>();
     Player2Dice1 = GameObject.FindWithTag("Player2").GetComponent <Player>();
     camEv        = GameObject.FindObjectOfType <CamEvent>();
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     c = GameObject.FindObjectOfType <Counter>();
     diceValueDisplay      = GetComponent <Text>();
     diceCheck1            = GameObject.FindObjectOfType <DiceCheckZoneScript1>();
     diceCheck2            = GameObject.FindObjectOfType <DiceCheckZoneScript2>();
     camEv                 = GameObject.FindObjectOfType <CamEvent>();
     playerToken1          = GameObject.FindWithTag("Player1").GetComponent <Player>();
     playerToken2          = GameObject.FindWithTag("Player2").GetComponent <Player>();
     action                = GameObject.FindObjectOfType <Action>();
     diceValueDisplay.text = "?";
     diceTotal             = 0;
     playerToken1.count    = 0;
 }