Ejemplo n.º 1
0
 void RPC_RemoveFlag()
 {
     hasFlag = false;
     playerHasFlagParticles.SetActive(false);
     flagCount++;
     if (heroControllerInstance)
     {
         heroControllerInstance.AddFlag();
     }
     PhotonNetwork.Instantiate("LeaveFlag", transform.position + new Vector3(0, 1, 0), Quaternion.identity);
 }