private void Awake() { //Gos if (myRb == null) { myRb = GetComponent <Rigidbody>(); } if (myHudRenderer == null) { myHudRenderer = FindObjectOfType <HUDRenderer>(); } myCucho.GetComponent <Collider>().gameObject.SetActive(false); if (myPlayer == null) { myPlayer = FindObjectOfType <PlayerController>(); } if (mySceneC == null) { mySceneC = FindObjectOfType <SceneController>(); } //Variable Initialization movementSpeed = 15f; groundMovementSpeed = 7.5f; airMovementSpeed = groundMovementSpeed / 2; jumpForce = 10f; hp = 10; myHudRenderer.InitBossHudHealth(hp); inmunity = 0.2f; canAI = true; }
// Start is called before the first frame update void Start() { myHudRenderer.InitBossHudHealth(hp); }