Esempio n. 1
0
 public DashPathCalculationSystem(CoreInteractiveObject associatedInteractiveObject,
                                  PlayerDashTeleportationDirectionActionDefinition DashTeleportationDirectionActionDefinition, TargetCursorManager targetCursorManagerRef, Camera mainCamera) : this()
 {
     AssociatedInteractiveObject = associatedInteractiveObject;
     this.DashTeleportationDirectionActionDefinition = DashTeleportationDirectionActionDefinition;
     TargetCursorManagerRef = targetCursorManagerRef;
     MainCamera             = mainCamera;
 }
Esempio n. 2
0
        public PlayerDashDirectionAction(CoreInteractiveObject associatedInteractiveObject,
                                         PlayerDashTeleportationDirectionActionDefinition DashTeleportationDirectionActionDefinition,
                                         CoreInteractiveObjectActionDefinition coreInteractiveObjectActionDefinition) : base(coreInteractiveObjectActionDefinition)
        {
            var targetCursormManagerRef = TargetCursorManager.Get();
            var mainCamera = Camera.main;

            this.DashPathCalculationSystem    = new DashPathCalculationSystem(associatedInteractiveObject, DashTeleportationDirectionActionDefinition, targetCursormManagerRef, mainCamera);
            this.DashPathVisualFeedbackSystem = new DashPathVisualFeedbackSystem(PlayerDashConfigurationGameObject.Get());

            this.Tick(0f);
        }