Exemple #1
0
    public override void OnStopEffect(GameObject Player)
    {
        PhotonSpawner ps = Player.GetComponent <PhotonSpawner>();

        ps.photonLifeSpan -= RadiusIncrease / ps.photonSpeed;
        ps.DecreasePhotonRate();
    }
Exemple #2
0
    public override void OnStartEffect(GameObject Player)
    {
        PhotonSpawner ps = Player.GetComponent <PhotonSpawner>();

        ps.photonLifeSpan += RadiusIncrease / ps.photonSpeed;
        ps.IncreasePhotonRate();
        Duration = 8f;
    }
Exemple #3
0
    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;
 }
Exemple #5
0
 private void Awake()
 {
         spawner = GameObject.FindGameObjectWithTag("PhotonSpawnerVibraphone").GetComponent<PhotonSpawner>();
 }