// Start is called before the first frame update
    void Start()
    {
        blockingTiles.SetActive(false);
        cutsceneActive = true;
        position       = transform.position;

        animator     = player.GetComponent <Animator>();
        anubisScript = anubis.GetComponent <anubisScript>();
    }
    // Update is called once per frame
    private void Awake()
    {
        canvas = GameObject.Find("Canvas");
        whipColliderAnimation = whipObject.GetComponent <Animation>();
        currentScene          = SceneManager.GetActiveScene();

        player       = this.GetComponent <Rigidbody2D>();
        healthScript = canvas.GetComponent <health>();
        if (currentScene.name == "Level Boss")
        {
            bossCutsceneObj    = GameObject.Find("CameraWaypoint");
            bossCutsceneScript = bossCutsceneObj.GetComponent <bossStartCutscene>();
        }

        bossScript = anubis.GetComponent <anubisScript>();


        //footsteps = GetComponent<AudioSource>();
    }
示例#3
0
 // Start is called before the first frame update
 void Start()
 {
     anubisHealth = anubis.GetComponent <anubisScript>();
     congratulationsUI.SetActive(false);
 }