Make work with astra
This commit is contained in:
parent
21859bcfb3
commit
c8ee5045e2
1 changed files with 6338 additions and 4613 deletions
|
|
@ -1,17 +1,11 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
|
||||
public class destroyCar : NetworkBehaviour {
|
||||
|
||||
public carCount text;
|
||||
|
||||
void OnTriggerEnter (Collider other)
|
||||
{
|
||||
if(isServer) {
|
||||
text.IncrementValue();
|
||||
Destroy(other.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
fileFormatVersion: 2
|
||||
guid: 88b7ddbf951e255478383ee9f8ecc0b2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
|
|||
Loading…
Reference in a new issue