public void makeInstance() { if (instance == null) { instance = this; } }
// Use this for initialization void Start() { jumpScript = GetComponent <playerJumpScript>(); movementScript = GetComponent <playerMovementScript>(); spriteRenderer = transform.Find("Lucy").GetComponent <SpriteRenderer>(); playerDeath = GetComponent <PlayerDeath>(); animator = GetComponent <Animator>(); }