Ejemplo n.º 1
0
 public void OnCheckpoint(CheckpointView checkpointView)
 {
     if (!checkpointsVisited.ContainsKey(checkpointView))
     {
         checkpointsVisited[checkpointView] = true;
         playerControlTrigger.Fire(this, false);
         checkpointTrigger.Fire(checkpointView, this);
     }
 }
Ejemplo n.º 2
0
 public void Initialize()
 {
     chunkFeatureView.Parent = chunkView.transform;
     PlaceChunk();
     itemContainerViews = SpawnItemContainers();
     checkpointWallView = chunkView.GetComponentInChildren <CheckpointWallView>();
     checkpointView     = SpawnCheckpoint();
     spawnViews         = SpawnSpawns();
 }
Ejemplo n.º 3
0
        private void OnCheckpointArrival(CheckpointView checkpointView, PlayerView playerView)
        {
            if (!checkpointMapping.ContainsKey(checkpointView))
            {
                return;
            }

            Checkpoint arrivedCheckpoint = checkpointMapping[checkpointView];

            arrivedCheckpoint.OnCheckpointArrival(playerView);
        }
Ejemplo n.º 4
0
        public void AddAether(CheckpointView checkpointView, PlayerView playerView, int aetherCount)
        {
            ParticleTargetRequest particleTargetRequest = new ParticleTargetRequest()
            {
                particleSystem     = checkpointView.AetherAward,
                particleCount      = aetherCount,
                targetTime         = settings.aetherTargetTime,
                targetTransform    = playerView.transform,
                particleTargetType = ParticleTargetType.Aether,
                playerView         = playerView,
            };

            checkpointView.ParticleTargetView.Target(particleTargetRequest);
        }