public PlayerSelectionWheelManager(PlayerInteractiveObject PlayerInteractiveObject, GameInputManager gameInputManager, PlayerActionEntryPoint playerActionEntryPoint) { GameInputManager = gameInputManager; this.PlayerActionEntryPoint = playerActionEntryPoint; this.PlayerInteractiveObjectRef = PlayerInteractiveObject; }
public PlayerAgentMoveManager(PlayerInteractiveObject playerAimingInteractiveObject, TransformMoveManagerComponentV3 TransformMoveManagerComponentV3, OnAIInteractiveObjectDestinationReachedDelegate OnDestinationReachedCallback = null) { this.PlayerInteractiveObject = playerAimingInteractiveObject; this.AIMoveToDestinationSystem = new AIMoveToDestinationSystem(playerAimingInteractiveObject, TransformMoveManagerComponentV3, OnDestinationReachedCallback); this.CurrentConstraint = new NoConstraint(); }
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); }
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; } } }
public void Init(PlayerInteractiveObject PlayerInteractiveObject) { this.PlayerInteractiveObject = PlayerInteractiveObject; }
public void OnPlayerInteractiveObjectDestroyed() { this.PlayerInteractiveObject = null; }
public void OnPlayerInteractiveObjectCreated(IPlayerInteractiveObject PlayerInteractiveObject) { this.PlayerInteractiveObject = (PlayerInteractiveObject)PlayerInteractiveObject; }
protected override CoreInteractiveObject InitializationLogic() { var PlayerInteractiveObject = new PlayerInteractiveObject(InteractiveGameObjectFactory.Build_Allocate(gameObject), this.PlayerInteractiveObjectDefinition); return(PlayerInteractiveObject); }
public void OnAdventureToPuzzleLevel(PlayerInteractiveObject PlayerInteractiveObject) { this.PlayerPositionBeforeLevelLoad = new PlayerPosition(PlayerInteractiveObject.InteractiveGameObject.InteractiveGameObjectParent.transform.position, PlayerInteractiveObject.InteractiveGameObject.InteractiveGameObjectParent.transform.rotation); this.playerPositionPersister.SaveAsync(this.PlayerPositionBeforeLevelLoad); }
public override void Init() { var PlayerInteractiveObject = new PlayerInteractiveObject(InteractiveGameObjectFactory.Build(gameObject), InteractiveObjectLogicCollider, LocomotionAnimation); PlayerInteractiveObjectManager.Get().Init(PlayerInteractiveObject); }