public void child_references_to_parent() { var scope = new ScopeCollection <int>(); ScopeBase <int> child = scope.GetChild(); Assert.AreSame(scope, child.Parent); }
void Awake() { fireMech = GetComponent <FireMechanism>(); ammoSys = GetComponent <AmmoSystem>(); recoil = GetComponent <RecoilBase>(); scopeStatus = GetComponent <IScopeStatus>(); scope = GetComponent <ScopeBase>(); reloadable = GetComponent <IReloadable>(); }
private void AddToListByType(ScopeBase scopebase, int type) { if (type == 0) { AllSettings.Current.SiteSettings.ScopeList.Add(scopebase); } else { AllSettings.Current.RegisterSettings.ScopeList.Add(scopebase); } }
private void AddToListByType(ScopeBase scopebase,int type) { if(type==0) { AllSettings.Current.SiteSettings.ScopeList.Add(scopebase); } else { AllSettings.Current.RegisterSettings.ScopeList.Add(scopebase); } }
public FileScope(String name, ScopeBase parent) : base(parent) => Name = name;
public NamedScope(ScopeBase parent) : base(parent) { }
public AnonymousScope(ScopeBase parent) : base(parent) { }
protected ScopeBase(TValue value) { this.parent = Top; this.Value = value; Top = this; }