Пример #1
0
    // Use this for initialization
    void Start()
    {
        baseDialogue = GameObject.Find("BaseDialogue").GetComponent <BaseDialogue>();

        dialogueEnd = false;
        StartCoroutine(StartDialogue());
    }
Пример #2
0
    // 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;
        }
    }
Пример #3
0
 // 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>();
 }
Пример #4
0
    // 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());
        }
	}
Пример #5
0
 // 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>();
 }
Пример #6
0
 public void SetParent(BaseDialogue parent)
 {
     this.parent = parent;
 }
Пример #7
0
 public ScriptBranch(BaseDialogue parent)
 {
     this.parent = parent;
     myScript = new List<ScriptPiece>();
     lastDecision = Decision.NONE;
 }
Пример #8
0
 // Use this for initialization
 void Start()
 {
     baseDialogue = GameObject.Find("BaseDialogue").GetComponent <BaseDialogue>();
 }
Пример #9
0
 // 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>();
 }