// Start is called before the first frame update void Start() { Play_Man = FindObjectOfType <PlayerManager>(); Latch_Man = FindObjectOfType <LatchMovement>(); Play_Con = FindObjectOfType <PlayerController>(); Play_Stats = FindObjectOfType <PlayerStats>(); UI_Man = GetComponent <UIManager>(); }
private void Awake() { LatchMove = GetComponent <LatchMovement>(); PlayCon = GetComponent <PlayerController>(); PlayStat = GetComponent <PlayerStats>(); Player_Anim = GetComponent <Animator>(); WallLatched = false; RoofLatched = false; CreatureLatched = false; UnlatchPls = false; Player_Collider = GetComponent <Collider2D>(); rigBod = GetComponent <Rigidbody2D>(); health = PlayStat.CheckStats.player_HP; }