示例#1
0
    // Start is called before the first frame update
    void Start()
    {
        //get rigid body component from player
        myRigidBody = GetComponent <Rigidbody2D>();
        myAnimator  = GetComponent <Animator>();

        dialogue_manager = FindObjectOfType <Dialogue_Manager>();

        // set facing right
        facingRight = true;
    }
示例#2
0
    //public bool quest1active;

    private void Start()
    {
        if (autoSelect)
        {
            outliner = GetComponent <Outline>();
        }
        manager = Dialogue_Manager.FindObjectOfType <Dialogue_Manager>();
        player  = PlayerMovement.FindObjectOfType <PlayerMovement>();

        gameObject.GetComponent <Dialogue_Trigger>().enabled = false;
    }
示例#3
0
    // Use this for initialization
    void Start()
    {
        dManager = FindObjectOfType <Dialogue_Manager> ();
        //player = FindObjectOfType
        player2 = GameObject.FindGameObjectWithTag("Player2");

        mvm1 = GameObject.FindGameObjectWithTag("Player1");
        mvm2 = GameObject.FindGameObjectWithTag("Player2");

        rndDialogs1 = GameObject.FindGameObjectWithTag("rndText");
        rndDialogs2 = GameObject.FindGameObjectWithTag("rndText2");
    }
 void Start()
 {
     if (Instance == null)
     {
         Instance  = this;
         sentences = new Queue <string>();
         DontDestroyOnLoad(gameObject);
     }
     else if (Instance != this)
     {
         Destroy(gameObject);
     }
 }
示例#5
0
    private void Start()
    {
        if (useBaseControl)
        {
            defaultSpeed = speed;

            rb = GetComponent <Rigidbody>();


            Cc = GetComponent <CharacterController>();
        }
        audioS          = GetComponent <AudioSource>();
        managerDialogue = FindObjectOfType <Dialogue_Manager>();
        mainCamera      = CinemachineBrain.FindObjectOfType <CinemachineBrain>();
        ui = UImanager.FindObjectOfType <UImanager>();

        // backVector = new Vector3(0, camRoot.position.y + 180, 0);
    }
示例#6
0
    // Start is called before the first frame update
    void Start()
    {
        myRigidBody = GetComponent <Rigidbody2D>();
        waitCounter = waitTime;
        walkCounter = walkTime;
        if (GetComponent <Dialogue_Manager>() != null)
        {
            dialogue_manager = GetComponent <Dialogue_Manager>();
        }
        if (GetComponent <Animator>() != null)
        {
            anim = GetComponent <Animator>();
        }


        if (inMovement)
        {
            ChooseDirection();
        }
    }
    //public Sprite nameSprite;

    private void Start()
    {
        dManager = GetComponent <Dialogue_Manager>();
    }
示例#8
0
 void Start()
 {
     dialogue_manager = FindObjectOfType <Dialogue_Manager>();
     flower_manager   = FindObjectOfType <Flower_Manager>();
 }
示例#9
0
 // Start is called before the first frame update
 void Start()
 {
     controller = GameObject.Find("DialogueManager").GetComponent <Dialogue_Manager>();
 }
示例#10
0
 void Start()
 {
     key           = GameObject.FindGameObjectsWithTag("Key");
     dialogoEscena = GetComponent <Dialogue_Manager>();
     cocinero      = GameObject.Find("CocineroCambioEscena");
 }
 // Start is called before the first frame update
 void Start()
 {
     dMan = FindObjectOfType <Dialogue_Manager>();
 }
 void Start()
 {
     dialogue_manager = GameObject.FindGameObjectWithTag("Dialogue_Manager").GetComponent <Dialogue_Manager>();
 }
示例#13
0
 // Start is called before the first frame update
 void Start()
 {
     manager = Dialogue_Manager.FindObjectOfType <Dialogue_Manager>();
 }
示例#14
0
 private void Awake()
 {
     instance = this;
 }
示例#15
0
 void Start()
 {
     dialogoEscena = GetComponent <Dialogue_Manager>();
     posicion      = GetComponent <Transform>();
 }