Пример #1
0
    // Use this for initialization
    void Awake()
    {
        NetMasterCallbacks.RegisterCallbackInterfaces(this, true);
        rotationPerTick = new Vector3(0, 0, 360f * (Time.fixedDeltaTime * TickEngineSettings.sendEveryXTick));

        tickText = GetComponentInChildren <TextMesh>();

        if (!tickText)
        {
            tickText = GetComponentInParent <TextMesh>();
        }

        if (tickText)
        {
            tickText.text = "";
        }
    }
Пример #2
0
 private void OnDestroy()
 {
     NetMasterCallbacks.RegisterCallbackInterfaces(this, false, true);
 }