コード例 #1
0
        public override void Init(Weapon weapon)
        {
            Transform partTransform = weapon.runtime.weaponTip.Find(particleSystemName);

            if (partTransform != null)
            {
                part          = partTransform.GetComponent <ParticleSystem>();
                onHitSettings = partTransform.gameObject.AddComponent <ParticleProjectileOnHit>();
            }
            else
            {
                Debug.LogWarning("Could not find ParticleSystem: " + particleSystemName);
            }
        }