// 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; }
//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; }
// 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); } }
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); }
// 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>(); }
void Start() { dialogue_manager = FindObjectOfType <Dialogue_Manager>(); flower_manager = FindObjectOfType <Flower_Manager>(); }
// Start is called before the first frame update void Start() { controller = GameObject.Find("DialogueManager").GetComponent <Dialogue_Manager>(); }
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>(); }
// Start is called before the first frame update void Start() { manager = Dialogue_Manager.FindObjectOfType <Dialogue_Manager>(); }
private void Awake() { instance = this; }
void Start() { dialogoEscena = GetComponent <Dialogue_Manager>(); posicion = GetComponent <Transform>(); }