// Use this for initialization void Start() { black = GameObject.Find("Tutorial").GetComponent <Image>(); dialogue_Canvas = GameObject.Find("TextCanvas").GetComponent <Canvas>(); dialogue_Canvas.enabled = false; dialogue = GameObject.Find("Dialogue").GetComponent <Dialogue>(); charName = GameObject.Find("Name").GetComponent <Text>(); player_0_Function = GameObject.Find("Player_0").GetComponent <Character_Move>(); player_1_Function = GameObject.Find("Player_1").GetComponent <Player_1>(); transition = GameObject.Find("Transition").GetComponent <Transition_Scene>(); choice1 = GameObject.Find("Choice1").GetComponent <Text>(); choice2 = GameObject.Find("Choice2").GetComponent <Text>(); baseDialogue = GameObject.Find("Tutorial").GetComponent <BaseDialogue>(); tut_list = DialogueScripts.TutorialCS1; if (!PlayerPrefs.HasKey("TUTORIAL")) { dialogueEnd = false; StartCoroutine(InitialDialogue()); } else { dialogueEnd = true; black.enabled = false; player_0_Function.transform.Translate(Vector3.up * 1f, Space.World); player_0_Function.transform.rotation = Quaternion.Euler(0, 0, 0); player_0_Function.enabled = true; player_1_Function.enabled = true; } }
// Use this for initialization void Start() { baseDialogue = GameObject.Find("BaseDialogue").GetComponent <BaseDialogue>(); player_0_Function = GameObject.Find("Player_0").GetComponent <Character_Move>(); player_1_Function = GameObject.Find("Player_1").GetComponent <Player_1>(); p0 = GameObject.Find("Player_0").GetComponent <Animator>(); p1 = GameObject.Find("Player_1").GetComponent <Animator>(); transition = GameObject.Find("Transition").GetComponent <Transition_Scene>(); }
void Start() { deathSound = GetComponent <AudioSource>(); // assign AudioSource monsterDieSound = GetComponent <AudioSource>(); // assign AudioSource _character_move = FindObjectOfType <Character_Move>(); hasMonsterFlipped = false; }
// Use this for initialization void Start() { dialogue_Canvas = GameObject.Find("TextCanvas").GetComponent <Canvas>(); dialogue_Canvas.enabled = false; dialogue = GameObject.Find("Dialogue").GetComponent <Dialogue>(); charNames = GameObject.Find("Name").GetComponent <Text>(); player_0_Function = GameObject.Find("Player_0").GetComponent <Character_Move>(); player_1_Function = GameObject.Find("Player_1").GetComponent <Player_1>(); }
private void Start() { rb = gameObject.GetComponent <Rigidbody2D>(); Animator animator = gameObject.GetComponentInChildren <Animator>(); SpriteRenderer sp = gameObject.GetComponentInChildren <SpriteRenderer>(); P = new Player_Schema(200, 200, 200, jump_power, dash_power, animator, sp); cm = new Character_Move(rb, movementSpeed, additionalLinearDrag); cj = new Character_Jump(jump_power, rb, grounded); }
// Use this for initialization void Start () { baseDialogue = GameObject.Find("BaseDialogue").GetComponent<BaseDialogue>(); player_0_Function = GameObject.Find("Player_0").GetComponent<Character_Move>(); player_1_Function = GameObject.Find("Player_1").GetComponent<Player_1>(); player_0 = GameObject.Find("Player_0").GetComponent<Animator>(); player_1 = GameObject.Find("Player_1").GetComponent<Animator>(); if (PlayerPrefs.GetInt("PUZZLE") == 1 && !PlayerPrefs.HasKey("TUTORIALHUB")) { dialogueEnd = false; StartCoroutine(StartDialogue()); } }
// Use this for initialization void Start() { player_0_Function = GameObject.Find("Player_0").GetComponent <Character_Move>(); player_1_Function = GameObject.Find("Player_1").GetComponent <Player_1>(); transition = GameObject.Find("Transition").GetComponent <Transition_Scene>(); baseDialogue = GameObject.Find("Tutorial").GetComponent <BaseDialogue>(); target = GameObject.Find("CutScenePosition").GetComponent <BoxCollider2D>(); player_0 = GameObject.Find("Player_0").GetComponent <Animator>(); player_1 = GameObject.Find("Player_1").GetComponent <Animator>(); puzzle = GameObject.Find("PuzzlePieces_1").GetComponent <Image>(); door = GameObject.Find("Door_Open_Light_Top_Round").GetComponent <Image>(); p0 = GameObject.Find("Player_0").GetComponent <SpriteRenderer>(); p1 = GameObject.Find("Player_1").GetComponent <SpriteRenderer>(); }
void Start() { merry.GetComponent <Character_Move>().enabled = false; landSound = GetComponent <AudioSource>(); // assign AudioSource deathSound = GetComponent <AudioSource>(); // assign AudioSource _character_move = FindObjectOfType <Character_Move>(); Physics2D.IgnoreLayerCollision(12, 13); StartCoroutine(EnableMovementAfterDelay(3.5f)); InvokeRepeating("JumpMikeJump", 2.0f, 1.0f); }
// Use this for initialization void Start() { p0 = GameObject.Find("Player_0").GetComponent <Character_Move>(); pause = GameObject.Find("PauseListen").GetComponent <Pause_Game>(); transition = GameObject.Find("Transition").GetComponent <Transition_Scene>(); }
public void Start() { pause = false; p0 = GameObject.Find("Player_0").GetComponent <Character_Move>(); UnPause(); }
// Use this for initialization void Start() { death = GameObject.Find("DeathLocation").GetComponent <GameObject> (); p0 = GameObject.Find("Player_0").GetComponent <Character_Move> (); }
// Use this for initialization void Start() { baseDialogue = GameObject.Find("BaseDialogue").GetComponent <BaseDialogue>(); player_0_Function = GameObject.Find("Player_0").GetComponent <Character_Move>(); player_1_Function = GameObject.Find("Player_1").GetComponent <Player_1>(); }
// Use this for initialization void Start() { associateScriptPlayer = GameObject.FindGameObjectWithTag("Player").GetComponent <Character_Move>(); }