示例#1
0
 public void OnDisable()
 {
     if (this == instance)
     {
         instance = null;
     }
 }
示例#2
0
    public void OnEnable()
    {
        if (instance != null)
        {
            throw(new System.Exception("Error: Cannot create more than one instance of RiftToolRing!"));
        }
        instance = this;

        setAvailableTools(null);
    }