Exemple #1
0
    void ShotCreat(animationUtil target)
    {
        animationUtil obj = Instantiate(target, effectPosition.position, Quaternion.identity);
        var           vec = fireVector;

        vec.x *= Mathf.Sign(-transform.localScale.x);
        obj.SetVelocity(vec);
        obj.SetDedLength(fireLength);
    }
Exemple #2
0
    public void FireCreate()
    {
        animationUtil obj = Instantiate(fire, effectPos.position, Quaternion.identity);
        var           vec = fireVector;

        vec.x *= Mathf.Sign(-transform.localScale.x);
        obj.SetVelocity(vec);
        obj.SetDedLength(fireLength);
    }