public void Start() { driver = GameObject.FindObjectOfType<FlippyDriver>(); player = GameObject.FindObjectOfType<FlippyPlayer>(); }
public void Start() { player = GameObject.Find("FlippyPlayer").GetComponent<FlippyPlayer>(); scoreLabelPlaying = new GUIStyle(skin.label); scoreLabelPlaying.alignment = TextAnchor.MiddleLeft; scoreLabelEnd = new GUIStyle(scoreLabelPlaying); scoreLabelEnd.fontSize = (int)(scoreLabelEnd.fontSize * 1.5f); scoreValuePlaying = new GUIStyle(skin.label); scoreValuePlaying.alignment = TextAnchor.MiddleRight; scoreValueEnd = new GUIStyle(scoreValuePlaying); scoreValueEnd.fontSize = (int)(scoreValueEnd.fontSize * 1.5f); retryButton = new GUIStyle(skin.label); retryButton.alignment = TextAnchor.MiddleCenter; }