Esempio n. 1
0
        public override void OnPlace()
        {
            var cpt = this.gameObject.GetComponent <CustomPlaceToolController>();

            if (cpt != null)
            {
                cpt.Hide();
            }
            base.OnPlace();
            if (this.gameObject.name != null)
            {
                PrefabsHelper.FixPlaceToolSkyAppliers(this.gameObject);
            }
        }
Esempio n. 2
0
        public override void OnPlace()
        {
            this.gameObject.GetComponent <CustomPlaceToolController>().Hide();
            base.OnPlace();

            if (!HasBeenPlaced)
            {
                if (this.BrighterIllum > 0.0f || this.BrighterColor > 0.0f)
                {
                    SetBrighter();
                }
                RotateScaleTranslate();
                HasBeenPlaced = true;
            }
            if (this.gameObject.name != null)
            {
                PrefabsHelper.FixPlaceToolSkyAppliers(this.gameObject);
            }
        }