public void Awake() { if(_instance != null) { Debug.LogError("Can't have multiple players in a scene"); Destroy(gameObject); return; } _instance = this; }
public void Start() { cc = GetComponent<CharacterController2D>(); player = GetComponent<Player>(); }