private void Awake() { heldObject = new StateObjectReference(); heldObject.OnChanged += HeldObject_OnChanged; grabSphere.transform.parent = null; grabSphere.SetActive(false); playerInputController = GetComponent <PlayerInputController>(); }
private void Awake() { activePower = new StateInt(0, ActivePower_OnChanged); playerInputController = GetComponent <PlayerInputController>(); }
private void Awake() { isCube = new StateBool(true, IsCube_OnChanged); playerInputController = GetComponent <PlayerInputController>(); }