// private CharacterSelection PlayersChoice; // Use this for initialization void Start() { chara = GameObject.FindGameObjectWithTag("Player"); cam = Camera.main.transform; lastPos = transform.position; SlopeScr = chara.GetComponent <SlopesScript>(); anim = GetComponent <Animator>(); inventory.ItemUsed += Inventory_ItemUsed; PlayerStats = chara.GetComponent <StatsScript>(); }
// Use this for initialization void Start() { chara = GameObject.FindGameObjectWithTag("Player"); SlopeScr = chara.GetComponent <SlopesScript>(); }