예제 #1
0
    // Use this for initialization
    void Start()
    {
        myId        = gameObject.GetComponent <NetworkIdentity>();
        spawnPoints = FindObjectsOfType <NetworkStartPosition>();
        timer       = 0;

        dragStatus     = gameObject.GetComponent <DraggingHandler>();
        airShareStatus = gameObject.GetComponent <AirShareHandler>();
    }
예제 #2
0
    private void CheckCanGetAir()
    {
        AirShareHandler otherShareHandler = otherPlayer.GetComponent <AirShareHandler>();

        if (otherShareHandler.sharingAir)
        {
            CmdSetGettingAir(true);
            CmdSetAwaitAir(false);
        }
    }