Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        coolDown = 3;
        plrMngr  = GetComponent <PlayerManager>();

        control = GetComponent <charController>();
        introHead.gameObject.SetActive(true);
        introTitle.gameObject.SetActive(true);
    }
Exemplo n.º 2
0
    void Start()
    {
        chara   = GameObject.Find("Character");
        stats   = chara.GetComponent(typeof(Stats)) as Stats;
        charcon = chara.GetComponent(typeof(charController)) as charController;

        duration  = 1.5f;
        healthmin = stats.health;
    }
Exemplo n.º 3
0
    // Use this for initialization
    void Start()
    {
        chara            = GameObject.Find("Character");
        charcon          = (charController)chara.GetComponent(typeof(charController));
        charcon.immobile = true;
        //charcon.invincible = true;
        charcon.silenced  = true;
        mouseLook         = chara.GetComponent(typeof(lookAtMouse)) as lookAtMouse;
        mouseLook.enabled = false;

        dir      = chara.transform.forward;
        duration = 0.7f;
        prevHits = new List <Collider>();

        transform.position         = chara.transform.position;
        transform.localEulerAngles = chara.transform.localEulerAngles;
    }
Exemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     control = GetComponent <charController>();
     introHead.gameObject.SetActive(true);
     introTitle.gameObject.SetActive(true);
 }
Exemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        autoButton.isOn = false;
        SaveGameText.text = "";
        typetextcoroutine = null;
        dialoguefinished = true;
        choicesstart = new List<int> ();
        choicepanelvisible = false;
        dp = GameObject.Find ("DialogueParser").GetComponent<DialogueParser> ();
        cc = GameObject.Find ("Character").GetComponent<charController> ();
        Debug.Log (PlayerPrefs.GetInt ("FromContinue"));
        if (PlayerPrefs.GetInt ("FromContinue") == 0) {
            linenumber = 0;
        } else {
            linenumber = PlayerPrefs.GetInt ("LineNumber");
            choiceends = PlayerPrefs.GetInt("ChoiceEnds");
            choicegoto = PlayerPrefs.GetInt("Choicegoto");
            endofchoices = PlayerPrefs.GetInt("EndOfChoices");
            //MouseButtonClick(false);

        }
    }
Exemplo n.º 6
0
 void Start()
 {
     player = GameObject.Find("character").GetComponent<charController>();
     logcontroller = GameObject.Find("loghorController").GetComponent<physicsLog>();
 }
Exemplo n.º 7
0
 // Use this for initialization
 void Start()
 {
     testString   = "same";
     playerScript = player.GetComponent <charController>();
 }
Exemplo n.º 8
0
 // Use this for initialization
 void Start()
 {
     dp =GameObject.Find ("DialogueParser").GetComponent<DialogueParser> ();
     cc = GameObject.Find ("Character").GetComponent<charController> ();
     linenumber = 0;
 }