Exemple #1
0
    public void HitGhost(GameObject ghost)
    {
        particleManager.CreateHitFX(new Vector3(transform.position.x, transform.position.y, transform.position.z + 1));
        particleManager.CreateGhostDisapearFX(ghost.transform.position);

        Ghost hitGhost = ghost.GetComponent <Ghost>();

        hitGhost.Hit();
    }