void Start() { forwardMovment fm = this.gameObject.AddComponent <forwardMovment>(); fm.movementSpeed = speed; exp = this.gameObject.GetComponent <Explosion>(); anim = this.gameObject.transform.GetChild(0).GetComponent <Animator>(); }
void Start() { forwardMovment fm = this.gameObject.AddComponent <forwardMovment>(); exp = this.gameObject.GetComponent <Explosion>(); anim = this.gameObject.transform.GetChild(0).GetComponent <Animator>(); if (inEditing) { noteUiView = this.gameObject.transform.GetChild(1).GetComponent <NoteUiView>(); noteUiView.Activate(note); sounds = FindObjectOfType <SoundsLibrary>(); audio = this.gameObject.AddComponent <AudioSource>(); OnMouseDown(); } }
void Start() { fm = this.gameObject.GetComponent <forwardMovment>(); }