// Use this for initialization void Start() { playerAnimator = GetComponent <Animator>(); levelManager = FindObjectOfType <LevelManager>(); healthDisplay = FindObjectOfType <HealthDisplay>(); loseDetector = FindObjectOfType <LoseDetector>(); messager = FindObjectOfType <GUIMessageManager>(); playerSpawner = FindObjectOfType <PlayerSpawner>(); startPosition = transform.position; }
void Start() { decreasing = true; bar.SetActive(true); LoseDetector.lost = false; messager = FindObjectOfType <GUIMessageManager>(); winDetector = FindObjectOfType <WinDetector>(); loseDetector = FindObjectOfType <LoseDetector>(); centerBar.GetComponent <RectTransform>().SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, d); emptyTopPos = centerBar.transform.localPosition; if (color.Length > 0 && color.Length < 4) { SetColor(color[0]); } }
// Use this for initialization void Start() { levelManager = FindObjectOfType <LevelManager>(); loseDetector = FindObjectOfType <LoseDetector>(); }