Example #1
0
    private void OnEnable()
    {
        if (Instance != null)
        {
            Destroy(gameObject);
            return;
        }

        Instance = this;
    }
Example #2
0
    public List <GameObject> activeHoles = new List <GameObject>();   // currently active bullet holes



    void Start()

    {
        bulletHole = this;
    }
 // Use this for initialization
 void Start()
 {
     instance = this;
 }