示例#1
0
 // Use this for initialization
 void Awake()
 {
     if(Instance!=null)
     {
         Debug.LogError("too many fire");
     }
     Instance = this;
 }
示例#2
0
    // Use this for initialization

    void Awake()
    {
        if (Instance != null)
        {
            Debug.LogError("too many fire");
        }
        Instance = this;
    }
    void Awake()
    {
        // Register the singleton
        if (Instance != null)
        {
            Debug.LogError("Multiple instances of SpecialEffectsHelper!");
        }

        Instance = this;
    }