Esempio n. 1
0
    void FireBeam(Vector3 pos)
    {
        SkillshotFire skills    = GetComponent <SkillshotFire>();
        Vector3       direction = (pos - gameObject.transform.position).normalized;

        skills.FireBeam(gameObject.transform.position, direction); // NOTE: this fires off whatever gameobject this skill is on
    }
Esempio n. 2
0
    void FireTorpedo(Vector3 pos)
    {
        SkillshotFire skills    = GetComponent <SkillshotFire>();
        Vector3       direction = (pos);

        skills.FireTorpedo(positionMarker.transform.position, direction); // NOTE: this fires off whatever gameobject this skill is on
    }
Esempio n. 3
0
    void FireMine(Vector3 pos)
    {
        SkillshotFire skills = GetComponent <SkillshotFire>();

        skills.PlaceMine(pos);
    }
Esempio n. 4
0
    void ApplyMagneticField()
    {
        SkillshotFire skills = GetComponent <SkillshotFire>();

        skills.MagneticField(); // NOTE: this slows ALL in the area
    }
Esempio n. 5
0
    void ApplyHeal()
    {
        SkillshotFire skills = GetComponent <SkillshotFire>();

        skills.HealArea(); // NOTE: this heals ALL in the area
    }