protected override WorldObject DoNextPreparation(WorldObject go)
    {
        if (go.gameObject.activeSelf)
        {
            OnReposition?.Invoke(go);
            go.gameObject.SetActive(false);
        }

        return(go);
    }
Exemple #2
0
    protected override GameObject DoNextPreparation(GameObject go)
    {
        if (go.activeSelf)
        {
            if (OnReposition != null)
            {
                OnReposition.Invoke(go);
            }

            go.SetActive(false);
        }

        return(go);
    }
Exemple #3
0
    protected override ParticleSystem DoNextPreparation(ParticleSystem partSys)
    {
        if (partSys.gameObject.activeSelf)
        {
            if (OnReposition != null)
            {
                OnReposition.Invoke(partSys);
            }

            partSys.gameObject.SetActive(false);
        }

        return(partSys);
    }
    public void Reposition()
    {
        float value = -PlayerManager.Instance.player.transform.position.z;

        OnReposition.Invoke(value);
    }