void Awake() { netPosHub = GameManager.getGM().GetComponent <NetPositionHub>(); myRB = GetComponent <Rigidbody>(); myFlow = GetComponent <CombatFlow>(); photonView = PhotonView.Get(this); //waitTime = 1.0f / updatesPerSecond; //currentTimer = waitTime; lifeTime = 0.0f; }
void Awake() { teamAircraftLists = new List <List <CombatFlow> >(); teamAircraftLists.Add(new List <CombatFlow>()); teamAircraftLists.Add(new List <CombatFlow>()); debugViewTeam1Aircraft = teamAircraftLists[0]; debugViewTeam2Aircraft = teamAircraftLists[1]; playerSpawnEvent = new UnityEvent(); netPosHub = GetComponent <NetPositionHub>(); QualitySettings.vSyncCount = 0; Application.targetFrameRate = targetFrameRate; isHostInstance = PhotonNetwork.PlayerList.Length == 1; }