// Use this for initialization void Start() { selfTransform = GetComponent <RectTransform>(); initialPosition = selfTransform.anchoredPosition; targetPosition = selfTransform.anchoredPosition; playerName = GameObject.Find("Name").GetComponent <Text>(); cardsLabel = GameObject.Find("Cards Label").GetComponent <Text>(); starsLabel = GameObject.Find("Stars Label").GetComponent <Text>(); observeButton = GameObject.Find("ObserveButton").GetComponent <Button>(); challengeButton = GameObject.Find("ChallengeButton").GetComponent <Button>();; chatButton = GameObject.Find("ChatButton").GetComponent <Button>();; localChallengeLobbyManager = GameObject.FindObjectOfType <ChallengeLobbyManager>(); speed = 1000.0f; isInView = false; }
// Use this for initialization void Start() { localChallengeLobbyManager = GameObject.FindObjectOfType <ChallengeLobbyManager>(); }