コード例 #1
0
 public PlayerSelectionWheelManager(PlayerInteractiveObject PlayerInteractiveObject, GameInputManager gameInputManager,
                                    PlayerActionEntryPoint playerActionEntryPoint)
 {
     GameInputManager                = gameInputManager;
     this.PlayerActionEntryPoint     = playerActionEntryPoint;
     this.PlayerInteractiveObjectRef = PlayerInteractiveObject;
 }
コード例 #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();
 }
コード例 #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);
 }
コード例 #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;
                }
            }
        }
コード例 #5
0
 public void Init(PlayerInteractiveObject PlayerInteractiveObject)
 {
     this.PlayerInteractiveObject = PlayerInteractiveObject;
 }
コード例 #6
0
 public void OnPlayerInteractiveObjectDestroyed()
 {
     this.PlayerInteractiveObject = null;
 }
コード例 #7
0
 public void OnPlayerInteractiveObjectCreated(IPlayerInteractiveObject PlayerInteractiveObject)
 {
     this.PlayerInteractiveObject = (PlayerInteractiveObject)PlayerInteractiveObject;
 }
コード例 #8
0
        protected override CoreInteractiveObject InitializationLogic()
        {
            var PlayerInteractiveObject = new PlayerInteractiveObject(InteractiveGameObjectFactory.Build_Allocate(gameObject), this.PlayerInteractiveObjectDefinition);

            return(PlayerInteractiveObject);
        }
コード例 #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);
 }
コード例 #10
0
        public override void Init()
        {
            var PlayerInteractiveObject = new PlayerInteractiveObject(InteractiveGameObjectFactory.Build(gameObject), InteractiveObjectLogicCollider, LocomotionAnimation);

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