コード例 #1
0
        public override void Applied(CharacterData target)
        {
            base.Applied(target);

            //We use the fire effect as it's the only one existing in the project.
            //You can add new VFX and use an if or switch statement to use the right VFXType
            //depending on this effect m_DamageType
            m_FireInstance = VFXManager.GetVFX(VFXType.FireEffect);
            m_FireInstance.Effect.transform.position = target.transform.position + Vector3.up;
        }
コード例 #2
0
 void Awake()
 {
     Instance = this;
     Init();
 }