void Start() { Target = GameObject.Find("Sihir").transform; GameObject h = GameObject.Find("Sihir"); HPSihir = h.GetComponent <Hpsih> (); Music = h.GetComponent <SihirSounds> (); still_battle = false; already_music = false; hedgehog = gameObject.GetComponent <Animator> (); /*character = gameObject.AddComponent<CharacterController> (); * character.height = 0.01f; * character.radius = 0.01f;*/ /*character = gameObject.AddComponent<Rigidbody> (); * character.useGravity = true; * character.freezeRotation = true; * cols = gameObject.AddComponent<BoxCollider> ();*/ ch = gameObject.GetComponent <CharacterController> (); childcol = GameObject.Find("bigcrush 1(Clone)/idle/Bip001"); childcol.collider.enabled = true; health = HP; inipos = gameObject.transform.position; }
void Start() { //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject h = GameObject.Find ("Sihir"); health = h.GetComponent<Hpsih> (); GameObject m = GameObject.Find ("RealCamera"); mb = m.GetComponent<MotionBlur> (); }
//private bool sceneStarting = true; // Whether or not the scene is still fading in. public void Start() { // Set the texture so that it is the the size of the screen and covers it. guiTexture.pixelInset = new Rect(-1000, -1000, 5000, 5000); GameObject g = GameObject.Find ("Sihir"); hp = g.GetComponent<Hpsih> (); GameObject c = GameObject.Find ("Opening Cutscene"); cc = c.GetComponent<CutsceneControl> (); }
// Use this for initialization void Start() { //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject f = GameObject.Find ("bigcrush 1(Clone)/idle"); fe = f.GetComponent<FollowEnemy> (); GameObject h = GameObject.Find ("Sihir"); HPSihir = h.GetComponent<Hpsih> (); trs = GameObject.Find ("Sihir"); Attack = h.GetComponent <SihirSounds> (); }
void Start() { //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject s = GameObject.Find ("SpellCast"); castspell = s.GetComponent<SpellCast> (); DesoxField = GameObject.Find ("desoxfield"); GameObject h = GameObject.Find ("Sihir"); hp = h.GetComponent<Hpsih> (); trsihir = GameObject.Find ("Sihir"); GameObject a = GameObject.Find ("Sihir"); SihirSounds = a.GetComponent <SihirSounds> (); }
// Use this for initialization void Start() { //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject f = GameObject.Find("bigcrush 1(Clone)/idle"); fe = f.GetComponent <FollowEnemy> (); GameObject h = GameObject.Find("Sihir"); HPSihir = h.GetComponent <Hpsih> (); trs = GameObject.Find("Sihir"); Attack = h.GetComponent <SihirSounds> (); }
// Use this for initialization void Start() { //O gameobject a seguir foi inicializado para conseguir componente de outro script utilizando //a variavel ja declarada. GameObject a = GameObject.Find("Sihir"); SihirSounds = a.GetComponent <SihirSounds> (); GameObject s = GameObject.Find("Sihir"); hp = s.GetComponent <Hpsih> (); rb = GetComponent <Rigidbody> (); //Para que a variavel consiga armazenar o Rigidbody do objeto. pos = 0f; //o pos começara no 0. pos = transform.localEulerAngles.y; //E sera igual ao Y do objeto. jumpsound = true; //bool para controlar o som de pulo. }
// Use this for initialization void Start() { //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject s = GameObject.Find ("SpellCast"); castspell = s.GetComponent<SpellCast> (); esferar = GameObject.Find ("boladear2"); GameObject t = GameObject.Find ("Sihir"); tr = t.GetComponent<TrueSihir> (); GameObject h = GameObject.Find ("Sihir"); hp = h.GetComponent<Hpsih> (); trsih = GameObject.Find ("Sihir"); GameObject a = GameObject.Find ("Sihir"); SihirSounds = a.GetComponent <SihirSounds> (); }
void Start() { Target = GameObject.Find ("Sihir").transform ; GameObject h = GameObject.Find ("Sihir"); HPSihir = h.GetComponent<Hpsih> (); Music = h.GetComponent<SihirSounds> (); still_battle = false; already_music = false; hedgehog = gameObject.GetComponent<Animator> (); /*character = gameObject.AddComponent<CharacterController> (); character.height = 0.01f; character.radius = 0.01f;*/ /*character = gameObject.AddComponent<Rigidbody> (); character.useGravity = true; character.freezeRotation = true; cols = gameObject.AddComponent<BoxCollider> ();*/ ch = gameObject.GetComponent<CharacterController> (); childcol = GameObject.Find ("bigcrush 1(Clone)/idle/Bip001"); childcol.collider.enabled = true; health = HP; inipos = gameObject.transform.position; }
// Use this for initialization void Start() { GameObject h = GameObject.Find ("Sihir"); HPSihir = h.GetComponent<Hpsih> (); }
// Use this for initialization void Start() { GameObject h = GameObject.Find("Sihir"); HPSihir = h.GetComponent <Hpsih> (); }
// Use this for initialization void Start() { //O gameobject a seguir foi inicializado para conseguir componente de outro script utilizando //a variavel ja declarada. GameObject a = GameObject.Find ("Sihir"); SihirSounds = a.GetComponent <SihirSounds> (); GameObject s = GameObject.Find ("Sihir"); hp = s.GetComponent<Hpsih> (); rb = GetComponent<Rigidbody> ();//Para que a variavel consiga armazenar o Rigidbody do objeto. pos = 0f;//o pos começara no 0. pos = transform.localEulerAngles.y;//E sera igual ao Y do objeto. jumpsound = true;//bool para controlar o som de pulo. }
void Start() { GameObject g = GameObject.Find ("Sihir"); HPPlayer = g.GetComponent<Hpsih> (); }