Ejemplo n.º 1
0
 private void Awake()
 {
     _Controller    = this;
     Hand           = player.Instance.gameObject.transform.GetChild(0).transform.GetChild(1).gameObject;
     Player         = player.Instance;
     vaseRigidbody  = GetComponent <Rigidbody>();
     vasoCollider   = GetComponent <BoxCollider>();
     rotationOrigin = transform.rotation;
 }
Ejemplo n.º 2
0
        public PlayerInputExecute(IPlayerModel player)
        {
            _characterInput = new MovementInput(player.Character);

            _mineInput = new MineInput(player.Mines, player.Character.SetMinePosition);

            var takeObject = new TakeObject(player.Character.ThrowGrenadePosition, player.Character.TakeRange);

            _takeInput = new TakeObjectInput(takeObject);

            _grenadeInput = new GrenadeInput(player.Grenades, player.Character.ThrowGrenadePosition, takeObject);
        }