private void Start() { currentStage = char.GetNumericValue(SceneManager.GetActiveScene().name.Substring(5, 1)[0]); postman = GameObject.FindGameObjectWithTag("Postman").GetComponent <PostmanStateHandler>(); }
private void ReferenceComponents() { rb = GetComponent <Rigidbody2D>(); state = GetComponent <PostmanStateHandler>(); }