public override void OnStopEffect(GameObject Player) { PhotonSpawner ps = Player.GetComponent <PhotonSpawner>(); ps.photonLifeSpan -= RadiusIncrease / ps.photonSpeed; ps.DecreasePhotonRate(); }
public override void OnStartEffect(GameObject Player) { PhotonSpawner ps = Player.GetComponent <PhotonSpawner>(); ps.photonLifeSpan += RadiusIncrease / ps.photonSpeed; ps.IncreasePhotonRate(); Duration = 8f; }
void SnakeSpawner() { PhotonSpawner phSpawner = new PhotonSpawner(); if (phSpawner.playerRank == 1) { PhotonNetwork.Instantiate(Path.Combine("PhotonPrefabs", "SnakeHead1"), spawnPointP1.transform.position, spawnPointP1.transform.rotation, 0); } if (phSpawner.playerRank == 2) { PhotonNetwork.Instantiate(Path.Combine("PhotonPrefabs", "SnakeHead2"), spawnPointP2.transform.position, spawnPointP2.transform.rotation, 0); } }
public EntityManagerInitializer(EntityManager entityManager, PhotonSpawner photonSpawner) { this.entityManager = entityManager; this.photonSpawner = photonSpawner; }
private void Awake() { spawner = GameObject.FindGameObjectWithTag("PhotonSpawnerVibraphone").GetComponent<PhotonSpawner>(); }