Esempio n. 1
0
        public void Init(Item item, STParameters STParams)
        {
            this.item     = item;
            this.STParams = STParams;
            this.sp       = item.scatterParams;

            sp.isOpen = true;
        }
Esempio n. 2
0
        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>();
        }