private IEnumerator Start() { yield return(null); _transform = transform; if (UnityEngine.Random.Range(0.0f, 1.0f) <= RandomChanceForOtherModule) { Transform otherModule = OtherModuleGrabber.GetOtherModule(this); if (otherModule != null) { _module.LogFormat("I'm appreciating some other art - it's called \"{0}\". You should go appreciate it.", otherModule.name); _transform = otherModule; Art.SetArt(null); } } }
private void OnDestroy() { _info.OnBombExploded -= OnBombExploded; OtherModuleGrabber.GiveBackOtherModule(_transform); }