private void Start()
    {
        mainCam = Camera.main;
        playerC = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerController>();
        hook = playerC.GetComponent<GraplingHook>();

        startBackgroundColor = mainCam.backgroundColor;
        resetText.gameObject.SetActive(false);
    }
Example #2
0
 public override void Start()
 {
     base.Start();
     collisions.faceDir = 1;
     player             = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>().GetComponent <GraplingHook>();
 }