Materials.Awake C# (CSharp) Method

Awake() private method

private Awake ( ) : void
return void
    private void Awake()
    {
        if (Instance == null)
        {
            Instance = this;
        }
        else if (Instance != this)
        {
            Destroy(gameObject);
        }
    }
}
Materials