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

            Checkpoint arrivedCheckpoint = checkpointMapping[checkpointView];

            arrivedCheckpoint.OnCheckpointArrival(playerView);
        }
Beispiel #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);
        }