// Update is called once per frame void Update() { if (clearOtherModelScript == null) { clearOtherModelScript = FindObjectOfType <ClearOtherModels>(); } }
public void Update(){ model.SetActive(isAlive); if (translateToInitActive) { translateToInit(); } if (translateResetActive) { translateReset(); } if (clearOtherModelScript == null) { clearOtherModelScript = FindObjectOfType<ClearOtherModels> (); } }
public void Update() { model.SetActive(isAlive); if (translateToInitActive) { translateToInit(); } if (translateResetActive) { translateReset(); } if (clearOtherModelScript == null) { clearOtherModelScript = FindObjectOfType <ClearOtherModels> (); } }
// Update is called once per frame void Update () { if (clearOtherModelScript == null) { clearOtherModelScript = FindObjectOfType<ClearOtherModels>(); } }