// Use this for initialization void Start() { GameObject plr = GameObject.Find("Player"); mover = plr.GetComponent<CharMover>(); player = plr.transform; world = GameObject.Find("World"); gui = world.GetComponent<GameGUI>(); }
void Start() { movementScript = CharMover.GetComponent <CharMovement>(); anim = pc.GetComponent <Animator> (); textComp = display.GetComponent <Text>(); textComp.text = ""; anim_speech = speech.GetComponent <Animator> (); GenerateNewQuest(); }
// Use this for initialization void Start() { status = eStatus.Free; player = GameObject.Find( "Player" ); if (player) charscript = player.GetComponent<CharMover>(); jar = GameObject.Find( "Jar" ); if (jar) jarscript = jar.GetComponent<JarScript>(); }
// Use this for initialization void Start() { player = GameObject.Find( "Player" ); if (player) charscript = player.GetComponent<CharMover>(); }
// Use this for initialization void Start() { mover = GetComponent<CharMover>(); }