void Start() { myView = this.GetComponent <PhotonView>(); SliderObject = GameObject.FindGameObjectWithTag("Sliders"); slider = SliderObject.GetComponent <ScrollScript>(); LaunchButton = GameObject.FindGameObjectWithTag("firebutton").GetComponent <GUITexture>(); CanShootbutton = true; predictionLine = GetComponent <LineRenderer>(); predictionLine.enabled = true; predictionLine.SetWidth(0.2f, 0.2f); LaunchButton.texture = LaunchButtons[0]; Transform[] children = this.GetComponentsInChildren <Transform>(); foreach (Transform child in children) { if (child.gameObject.tag == "Holder") { ProjectileHolder = child; } } winds = this.transform.parent.GetComponentsInChildren <Transform>(); foreach (Transform child in winds) { if (child.CompareTag("windGenerator")) { windGen = child.gameObject; } } }
void Start() { ShootScript = this.GetComponent <Fire>(); anim = GetComponent <Animate>(); SlidersObject = GameObject.FindGameObjectWithTag("Sliders"); moveSlider = SlidersObject.GetComponent <ScrollScript>(); }
void Start() { agent = GetComponent <NavMeshAgent> (); agent.velocity = Vector3.zero; anim = GetComponent <Animate>(); SlidersObject = GameObject.FindGameObjectWithTag("Sliders"); moveSlider = SlidersObject.GetComponent <ScrollScript>(); anim.idle(); }
void Start() { myView = this.GetComponent <PhotonView>(); LifeScript = this.GetComponent <PlayerHealth>(); ShootScript = this.GetComponent <Fire>(); anim = GetComponent <Animate>(); SlidersObject = GameObject.FindGameObjectWithTag("Sliders"); moveSlider = SlidersObject.GetComponent <ScrollScript>(); }
private void Start() { startGameButton.onClick.AddListener(StartButtonClicked); restartGameButton.onClick.AddListener(OnRestart); activeBar = timerObj.transform.Find("ActiveBar"); loadingBar = activeBar.GetComponent <Image>(); scrollScript = ApplicationManager.Instance.ScrollScript; swipeScript = ApplicationManager.Instance.SwipeInput; }
void Start() { agent = GetComponent<NavMeshAgent> (); agent.velocity=Vector3.zero; anim = GetComponent<Animate>(); SlidersObject = GameObject.FindGameObjectWithTag("Sliders"); moveSlider=SlidersObject.GetComponent<ScrollScript>(); anim.idle (); }
void Start() { SliderObject = GameObject.FindGameObjectWithTag("Sliders"); slider = SliderObject.GetComponent <ScrollScript>(); LaunchButton = GameObject.FindGameObjectWithTag("firebutton").GetComponent <GUITexture>(); predictionLine = GetComponent <LineRenderer>(); predictionLine.enabled = true; predictionLine.SetWidth(0.2f, 0.2f); NormalProjectile(1); }
public static void SelectFunc(string baseDir, bool dirSearch, int fileid) { ScrollScript.SetDirSearch(dirSearch); bool res = ScrollScript.ReadFromDir(baseDir); if (res == false) { Debug.Log("dir not found"); return; } SelectButtonControl.SetCallingScene(Application.loadedLevelName); SelectButtonControl.SetFileId(fileid); Application.LoadLevel("FileSelector"); }
void Start () { bossDeathSound = GameObject.FindGameObjectWithTag ("bossDeathSound"); themesong.Play (); spawnPosition = gameObject.transform; StartCoroutine (Spawner()); // Parallax references backgroundScroller = background.GetComponent<ScrollScript> (); forgroundScroller = middleground.GetComponent<ScrollScript> (); middlegroundScroller = forground.GetComponent<ScrollScript> (); }
// Use this for initialization protected virtual void Start() { scroll = GameObject.Find ("scroll").GetComponent<ScrollScript> (); button = GameObject.Find ("scrollNextButton"); //HideText (); stage = Stage.Stage0; }
// Start is called before the first frame update void Start() { GameController = GameObject.FindGameObjectWithTag("GameController"); scrollScript = GameController.GetComponent <ScrollScript>(); DefaultCameraSize = Camera.main.orthographicSize; }
public Text myText; // should be related to TextFileName:Text void Start() { myText.text = SelectButtonControl.GetSelectedName(fileId); ScrollScript.UpdateInputField(dirNameInputField, fileId); }
void Start() { myView = this.GetComponent<PhotonView>(); LifeScript = this.GetComponent<PlayerHealth>(); ShootScript=this.GetComponent<Fire>(); anim = GetComponent<Animate>(); SlidersObject = GameObject.FindGameObjectWithTag("Sliders"); moveSlider=SlidersObject.GetComponent<ScrollScript>(); }
void Start() { SliderObject = GameObject.FindGameObjectWithTag("Sliders"); slider = SliderObject.GetComponent<ScrollScript>(); LaunchButton = GameObject.FindGameObjectWithTag("firebutton").GetComponent<GUITexture>(); predictionLine= GetComponent<LineRenderer>(); predictionLine.enabled=true; predictionLine.SetWidth(0.2f,0.2f); NormalProjectile(1); }
public InputField dirNameInputField; // should be related to Input Field for entering dirname private void SelectFunc(bool dirSearch) { ScrollScript.SelectFunc(dirNameInputField.text, dirSearch, fileId); }
void Start() { myView = this.GetComponent<PhotonView>(); SliderObject = GameObject.FindGameObjectWithTag("Sliders"); slider = SliderObject.GetComponent<ScrollScript>(); LaunchButton = GameObject.FindGameObjectWithTag("firebutton").GetComponent<GUITexture>(); CanShootbutton=true; predictionLine= GetComponent<LineRenderer>(); predictionLine.enabled=true; predictionLine.SetWidth(0.2f,0.2f); LaunchButton.texture = LaunchButtons[0]; Transform[] children = this.GetComponentsInChildren<Transform>(); foreach(Transform child in children){ if(child.gameObject.tag == "Holder"){ ProjectileHolder=child; } } winds = this.transform.parent.GetComponentsInChildren<Transform>(); foreach( Transform child in winds){ if(child.CompareTag("windGenerator")){ windGen = child.gameObject; } } }
void Start() { anim = GetComponent<Animate>(); SlidersObject = GameObject.FindGameObjectWithTag("Sliders"); moveSlider=SlidersObject.GetComponent<ScrollScript>(); }