示例#1
0
 void Start()
 {
     hand        = FindObjectOfType(typeof(movehand1)) as movehand1;
     phand       = FindObjectOfType(typeof(Playerhand)) as Playerhand;
     optionsMenu = FindObjectOfType(typeof(OnOptions)) as OnOptions;
     setup       = FindObjectOfType(typeof(SetUp)) as SetUp;
 }
示例#2
0
 void Start()
 {
     hand      = FindObjectOfType(typeof(movehand1)) as movehand1;
     phand     = FindObjectOfType(typeof(Playerhand)) as Playerhand;
     pauseMenu = FindObjectOfType(typeof(OnPause)) as OnPause;
     setup     = FindObjectOfType(typeof(SetUp)) as SetUp;
 }
示例#3
0
 // Use this for initialization
 void Start()
 {
     Screen.sleepTimeout = SleepTimeout.NeverSleep;
     plays = FindObjectOfType(typeof(Player)) as Player;
     hand  = FindObjectOfType(typeof(movehand1)) as movehand1;
     setup = FindObjectOfType(typeof(SetUp)) as SetUp;
     StartCoroutine(reset(6, 6, true));
     StartCoroutine(gamer2players());
 }
 // Use this for initialization
 void Start()
 {
     Screen.sleepTimeout = SleepTimeout.NeverSleep;
     level = PlayerPrefs.GetInt("MancalaLevel", 1);
     plays = FindObjectOfType(typeof(Player)) as Player;
     hand  = FindObjectOfType(typeof(movehand1)) as movehand1;
     setup = FindObjectOfType(typeof(SetUp)) as SetUp;
     StartCoroutine(reset(6, 6));
     StartCoroutine(gamer1player());
 }
示例#5
0
 // Use this for initialization
 void Start()
 {
     hand      = FindObjectOfType(typeof(movehand1)) as movehand1;
     phand     = FindObjectOfType(typeof(Playerhand)) as Playerhand;
     setup     = FindObjectOfType(typeof(SetUp)) as SetUp;
     p1winhole = GameObject.FindWithTag("Player1");
     p2winhole = GameObject.FindWithTag("Player2");
     hand1ani  = phand.GetComponent <Animator>();
     hand2ani  = hand.GetComponent <Animator> ();
     if (previoustag != 0)
     {
         GameObject prevhole = GameObject.FindGameObjectWithTag("points" + previoustag);
         prevhole.GetComponent <Renderer> ().enabled = false;
     }
     audioSource = UnityEngine.Object.FindObjectOfType <AudioSource>();
     if (PlayerPrefs.GetInt("MancalaSound", 1) == 1)
     {
         audioSource.UnPause();
     }
     else
     {
         audioSource.Pause();
     }
 }
示例#6
0
 void Start()
 {
     hand  = FindObjectOfType(typeof(movehand1)) as movehand1;
     phand = FindObjectOfType(typeof(Playerhand)) as Playerhand;
     setup = FindObjectOfType(typeof(SetUp)) as SetUp;
 }