Exemplo n.º 1
0
 public PlayerSelectionWheelManager(PlayerInteractiveObject PlayerInteractiveObject, GameInputManager gameInputManager,
                                    PlayerActionEntryPoint playerActionEntryPoint)
 {
     GameInputManager                = gameInputManager;
     this.PlayerActionEntryPoint     = playerActionEntryPoint;
     this.PlayerInteractiveObjectRef = PlayerInteractiveObject;
 }
Exemplo n.º 2
0
 public PlayerAgentMoveManager(PlayerInteractiveObject playerAimingInteractiveObject, TransformMoveManagerComponentV3 TransformMoveManagerComponentV3,
                               OnAIInteractiveObjectDestinationReachedDelegate OnDestinationReachedCallback = null)
 {
     this.PlayerInteractiveObject   = playerAimingInteractiveObject;
     this.AIMoveToDestinationSystem = new AIMoveToDestinationSystem(playerAimingInteractiveObject, TransformMoveManagerComponentV3, OnDestinationReachedCallback);
     this.CurrentConstraint         = new NoConstraint();
 }
Exemplo n.º 3
0
 public PlayerMoveManager(PlayerInteractiveObject playerAimingInteractiveObjectRef, ObjectMovementSpeedSystem PlayerObjectMovementSpeedSystemRef,
                          PlayerRigidBodyMoveManager PlayerRigidBodyMoveManager, PlayerAgentMoveManager PlayerAgentMoveManager)
 {
     this._playerIeractiveObjectRef          = playerAimingInteractiveObjectRef;
     this.PlayerObjectMovementSpeedSystemRef = PlayerObjectMovementSpeedSystemRef;
     this.PlayerRigidBodyMoveManager         = PlayerRigidBodyMoveManager;
     this.PlayerAgentMoveManager             = PlayerAgentMoveManager;
     this.PlayerMoveManagerState             = new PlayerMoveManagerState(
         OnFromInputActivated: this.EnableFromInput,
         OnFromAgentActivated: this.EnableFromAgent);
 }
Exemplo n.º 4
0
        public void Init(PlayerInteractiveObject PlayerInteractiveObject)
        {
            this.playerPositionPersister = new PlayerPositionPersister();

            if (!this.PlayerPositionBeforeLevelLoad.HasBeenInit)
            {
                var loadedPlayerPositionBeforeLevelLoad = this.playerPositionPersister.Load();
                if (!loadedPlayerPositionBeforeLevelLoad.HasBeenInit)
                {
                    this.OnAdventureToPuzzleLevel(PlayerInteractiveObject);
                }
                else
                {
                    this.PlayerPositionBeforeLevelLoad = loadedPlayerPositionBeforeLevelLoad;
                }
            }
        }
Exemplo n.º 5
0
 public void Init(PlayerInteractiveObject PlayerInteractiveObject)
 {
     this.PlayerInteractiveObject = PlayerInteractiveObject;
 }
Exemplo n.º 6
0
 public void OnPlayerInteractiveObjectDestroyed()
 {
     this.PlayerInteractiveObject = null;
 }
Exemplo n.º 7
0
 public void OnPlayerInteractiveObjectCreated(IPlayerInteractiveObject PlayerInteractiveObject)
 {
     this.PlayerInteractiveObject = (PlayerInteractiveObject)PlayerInteractiveObject;
 }
Exemplo n.º 8
0
        protected override CoreInteractiveObject InitializationLogic()
        {
            var PlayerInteractiveObject = new PlayerInteractiveObject(InteractiveGameObjectFactory.Build_Allocate(gameObject), this.PlayerInteractiveObjectDefinition);

            return(PlayerInteractiveObject);
        }
Exemplo n.º 9
0
 public void OnAdventureToPuzzleLevel(PlayerInteractiveObject PlayerInteractiveObject)
 {
     this.PlayerPositionBeforeLevelLoad = new PlayerPosition(PlayerInteractiveObject.InteractiveGameObject.InteractiveGameObjectParent.transform.position,
                                                             PlayerInteractiveObject.InteractiveGameObject.InteractiveGameObjectParent.transform.rotation);
     this.playerPositionPersister.SaveAsync(this.PlayerPositionBeforeLevelLoad);
 }
Exemplo n.º 10
0
        public override void Init()
        {
            var PlayerInteractiveObject = new PlayerInteractiveObject(InteractiveGameObjectFactory.Build(gameObject), InteractiveObjectLogicCollider, LocomotionAnimation);

            PlayerInteractiveObjectManager.Get().Init(PlayerInteractiveObject);
        }