protected override WorldObject DoNextPreparation(WorldObject go) { if (go.gameObject.activeSelf) { OnReposition?.Invoke(go); go.gameObject.SetActive(false); } return(go); }
protected override GameObject DoNextPreparation(GameObject go) { if (go.activeSelf) { if (OnReposition != null) { OnReposition.Invoke(go); } go.SetActive(false); } return(go); }
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); }