Ejemplo n.º 1
0
        public static PlayerDashConfigurationGameObject Get()
        {
            if (Instance == null)
            {
                Instance = GameObject.FindObjectOfType <PlayerDashConfigurationGameObject>();
            }

            return(Instance);
        }
Ejemplo 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);
        }
Ejemplo n.º 3
0
 public DashPathVisualFeedbackSystem(PlayerDashConfigurationGameObject PlayerDashConfigurationGameObject)
 {
     this.LineRenderer = GameObject.Instantiate(PlayerDashConfigurationGameObject.PlayerDashConfiguration.DashPathVisualFeedbackPrefab);
 }