示例#1
0
    public Technology requiredTechnology;   //add more if you need more than one pre-requiste

    private void Awake()
    {
        if (_instance != null && _instance != this)
        {
            Destroy(gameObject);
        }
        else
        {
            _instance = this;
        }
    }
示例#2
0
 public GuardianItemComponent(Subjugation subjugation)
 {
     InitializeComponent();
     this.subjugation = subjugation;
     this.DataContext = this.subjugation;
 }