// Use this for initialization void Start() { playerObject = GameObject.FindGameObjectWithTag("Player"); player = playerObject.GetComponent <PlayerBehaviour>(); boss = GameObject.FindGameObjectWithTag("Boss").GetComponent <BossBehaviourBase>(); platforms = GameObject.FindGameObjectsWithTag("Platform"); startTime = Time.time; UpdatePlayerClosestPlatform(); }
// Use this for initialization void Start() { player1 = InitPlayerHUD(GameObject.FindGameObjectWithTag("Player"), transform.Find("Player1")); boss = GameObject.FindGameObjectWithTag("Boss").GetComponent <BossBehaviourBase>(); bossImage = transform.Find("Boss").GetComponent <Image>(); }