// Use this for initialization void Start() { myId = gameObject.GetComponent <NetworkIdentity>(); spawnPoints = FindObjectsOfType <NetworkStartPosition>(); timer = 0; dragStatus = gameObject.GetComponent <DraggingHandler>(); airShareStatus = gameObject.GetComponent <AirShareHandler>(); }
private void CheckCanGetAir() { AirShareHandler otherShareHandler = otherPlayer.GetComponent <AirShareHandler>(); if (otherShareHandler.sharingAir) { CmdSetGettingAir(true); CmdSetAwaitAir(false); } }