コード例 #1
0
        public override void EquipementFeedbackInit(Equipement _source)
        {
            base.EquipementFeedbackInit(_source);

            if (_source.GetType() == typeof(HullSonar))
            {
                sourceHullSonar = _source as HullSonar;
            }
            else
            {
                print("FeedBack specified to equipement: " + _source.GetType().ToString() + " is not the right feedback");
                return;
            }

            waveRenderer.material = waveMaterial;
            waveRenderer.sharedMaterial.SetFloat("VitesseOnde", waveSpeed);
            waveRenderer.transform.localScale = Vector3.one * scaleFactor;
        }
コード例 #2
0
        public override void EquipementFeedbackInit(Equipement _source)
        {
            base.EquipementFeedbackInit(_source);


            if (_source.GetType() == typeof(Mad))
            {
                sourceMad = _source as Mad;
            }
            else
            {
                print("FeedBack specified to equipement: " + _source.GetType().ToString() + " is not the right feedback");
                return;
            }

            madRenderer.transform.localScale  = Vector3.one;
            madRenderer.transform.localScale *= scaleFactor;
        }