void Start() { camTransform = transform; cam = Camera.main; playerScript = lookAt.GetComponent <BasicPlayerScript>(); }
// Start is called before the first frame update void Start() { player = this.GetComponent <BasicPlayerScript>(); playerNumber = GetComponent <BasicPlayerScript>().playerNum; //setting AudioSource GnomercySoundPlayer = gameObject.GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { // downVine.gameObject.SetActive(false); player = GetComponent <BasicPlayerScript>(); playerNumber = GetComponent <BasicPlayerScript>().playerNum; rb2D = GetComponent <Rigidbody2D>(); yDir = 1; vining = false; latched = false; goUp = true; }