void Start() { player = GameObject.FindGameObjectWithTag("Player"); bossContainer = transform.parent.gameObject; bossJambesScript = bossContainer.GetComponent <BossJambes>(); lifeSystemScript = player.GetComponent <LifeSystem>(); }
private void OnEnable() { GM = GameObject.Find("GameManager").GetComponent <GameManager>(); lockVirtualCameraAnimator = lockVirtualCamera.GetComponent <Animator>(); bossAnimator = GetComponent <Animator>(); BossName = gameObject.name; if (BossName == "BossJambes") { bossJambesScript = GetComponent <BossJambes>(); } }