Exemple #1
0
 void Destroy()
 {
     if (Instance == this)
     {
         Instance = null;
     }
 }
Exemple #2
0
    void Awake()
    {
        OriginalScale     = this.gameObject.transform.lossyScale;
        ArrowDisplayScale = ArrowDisplay.gameObject.GetComponent <RectTransform>().localScale;

        if (Instance == null)
        {
            Instance = this;
        }
    }