public void Init(Item item, STParameters STParams) { this.item = item; this.STParams = STParams; this.sp = item.scatterParams; sp.isOpen = true; }
private void CreateScatterObject() { try { scatterToolGO = FindObjectOfType <ScatterTool>().gameObject; } catch { scatterToolGO = new GameObject(); scatterToolGO.AddComponent <ScatterTool>(); scatterToolGO.name = "ScatterObject"; scatterToolGO.hideFlags = HideFlags.HideInHierarchy; scatterToolGO.hideFlags = HideFlags.HideInInspector; } scatterTool = scatterToolGO.GetComponent <ScatterTool>(); scatterImp = scatterToolGO.GetComponent <STImplementation>(); scatterParams = scatterToolGO.GetComponent <STParameters>(); }