Ejemplo n.º 1
0
 public void SubmitName(string arg0)
 {
     ts = GameObject.Find("Environment").GetComponent <TwitterScript>();
     Debug.Log(arg0);
     Debug.Log("Suubmit");
     ts.FilterBtn(arg0);
 }
Ejemplo n.º 2
0
    void Start()
    {
        animator           = GetComponent <Animator>();
        currentDesperation = startingDesperation;
        currentMoney       = startingMoney;
        moneyText          = moneyTextObject.GetComponent <TMPro.TextMeshProUGUI>();
        moneyText.text     = "$" + startingMoney.ToString();

        twitterScript = GameObject.Find("UI/TwitterScriptObject").GetComponent <TwitterScript>();
    }
Ejemplo n.º 3
0
    void Start()
    {
        rand  = new System.Random();
        timer = Random.Range(0, 1);

        playerScript      = player.GetComponent <Player>();
        blackScreen       = GameObject.Find("BlackScreen");
        twitterScript     = GameObject.Find("UI/TwitterScriptObject").GetComponent <TwitterScript>();
        moveTowardsPlayer = GetComponent <MoveTowardsPlayer>();
        originalRotation  = transform.eulerAngles.z;

        audioSource  = transform.Find("CameraSound").GetComponent <AudioSource>();
        cameraSounds = Resources.LoadAll <AudioClip>("Sounds");
    }