dice number showing with c# on unity 3d : I wrote a code to show the number of the dice on the screen but that did not happen when I pressed the button only the number 0 is showing  .     [enter image description here][1]                                 


  [1]: https://i.stack.imgur.com/IF6QM.png 
this is Dice script :

   ` using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;

    public class Dice: MonoBehaviour {
    static Rigidbody rb;
    public static Vector3 diceVelocity;

	// Use this for initialization
	void Start () {
        rb = GetComponent<Rigidbody>();
    }
    
    // Update is called once per frame
    void Update () {
            diceVelocity = rb.velocity;
            if (Input.GetKey("left"))
            {
            DiceNumberText.diceNumber = 0;
            float dirX = Random.Range(0, 500);
                float dirY = Random.Range(0, 500);
                float dirZ = Random.Range(0, 500);
                transform.position = new Vector3(0, 2, 0);
                transform.rotation = Quaternion.identity;
                rb.AddForce(transform.up * 500);
                rb.AddTorque(dirX, dirY, dirZ);
            }
        


    }
}`
and my DiceNumberscript:

    `public class DiceNumberText : MonoBehaviour {
    Text text;
    public static int diceNumber;
	// Use this for initialization
	private void Start () {
        text = GetComponent< Text>();

		
	}
	
	// Update is called once per frame
	void Update () {
        text.text = diceNumber.ToString();
	}
}
` 