예제 #1
0
        private void Awake()
        {
            heldObject            = new StateObjectReference();
            heldObject.OnChanged += HeldObject_OnChanged;

            grabSphere.transform.parent = null;

            grabSphere.SetActive(false);

            playerInputController = GetComponent <PlayerInputController>();
        }
예제 #2
0
        private void Awake()
        {
            activePower = new StateInt(0, ActivePower_OnChanged);

            playerInputController = GetComponent <PlayerInputController>();
        }
예제 #3
0
        private void Awake()
        {
            isCube = new StateBool(true, IsCube_OnChanged);

            playerInputController = GetComponent <PlayerInputController>();
        }