private void Awake() { jumpEvent = new UnityEvent(); specEvent = new UnityEvent(); specUpEvent = new UnityEvent(); actiEvent = new UnityEvent(); strings = new ActorStrings(player); }
// Start is called before the first frame update void Start() { rb2d = GetComponent <Rigidbody2D>(); gc = GetComponentInChildren <GroundCheck>(); wcs = GetComponentsInChildren <WallCheck>(); left = wcs.OrderBy(x => x.transform.position.x).First(); right = wcs.OrderBy(x => x.transform.position.x).Last(); //Debug.Log(right.transform.position.x); aStrings = GetComponent <ActorMovementManager>().strings; }