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; }
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; }
// 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(); } }
void Start() { hand = FindObjectOfType(typeof(movehand1)) as movehand1; phand = FindObjectOfType(typeof(Playerhand)) as Playerhand; setup = FindObjectOfType(typeof(SetUp)) as SetUp; }