コード例 #1
0
    // Use this for initialization
    void Start()
    {
        GameObject.Find ("sim").GetComponent<BoxCollider2D>().enabled = false;
        GameObject.Find ("nao").GetComponent<BoxCollider2D>().enabled = false;

        timer[3] = 5f;
        start = false;
        cmt_plr = GameObject.FindGameObjectWithTag("Player").GetComponent<ComunicationAndStatusPlayer>();
        plr_mov = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerMove>();
        npc_mov = GameObject.Find("NPCF").GetComponent<NPCMove>();
        cam = GameObject.Find ("Main Camera").GetComponent<CamControl> ();
        cam_size = GameObject.Find ("Main Camera").GetComponent<Camera> ();
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     plr_mov = GameObject.FindGameObjectWithTag ("Player").GetComponent<PlayerMove> ();
     plr_cmt = GameObject.FindGameObjectWithTag ("Player").GetComponent<ComunicationAndStatusPlayer> ();
     cam = GameObject.Find ("Main Camera").GetComponent<CamControl> ();
 }
コード例 #3
0
 // Use this for initialization
 void Start()
 {
     plr_bln = GameObject.FindGameObjectWithTag("Player").GetComponent<ComunicationAndStatusPlayer>();
     Force = 150f;
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     cmc_plr = GameObject.FindGameObjectWithTag("Player").GetComponent<ComunicationAndStatusPlayer>();
     plr_mov = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerMove>();
 }
コード例 #5
0
    // Use this for initialization
    void Start()
    {
        // Inicializando Valor Das Variaveis Publicas Somente Para Comunicaçao (assim evitando erros)
        comunication = false;
        start_dial = false;

        // cores
        this.gameObject.GetComponent<SpriteRenderer> ().color = new Color (Random.Range(0,1f),Random.Range(0,1f),Random.Range(0,1f));

        // Importanto Componentes (<Scripts>,<SpriteRenderer>)
        plr_spr = GameObject.FindGameObjectWithTag("plr_bln").GetComponent<SpriteRenderer>();
        plr_bln = GameObject.FindGameObjectWithTag("Player").GetComponent<ComunicationAndStatusPlayer>();
        plr_mov = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerMove>();
        cntrl = GameObject.Find("Main Camera").GetComponent<CamControl>();
        kpt_cool = GameObject.FindGameObjectWithTag("Player").GetComponent<KeepinItCool>();
        //anima = GetComponent<NPCAnim>();
    }
コード例 #6
0
 // Use this for initialization
 void Start()
 {
     cmc = GameObject.FindGameObjectWithTag ("Player").GetComponent<ComunicationAndStatusPlayer> ();
 }
コード例 #7
0
    //NPCAnim anima;
    //CutSceneControl cntrl;
    // Use this for initialization
    void Start()
    {
        // Inicializando Valor Das Variaveis Publicas Somente Para Comunicaçao (assim evitando erros)
        comunication = false;
        start_dial = false;

        // Importanto Componentes (<Scripts>,<SpriteRenderer>)
        plr_spr = GameObject.FindGameObjectWithTag("plr_bln").GetComponent<SpriteRenderer>();
        plr_bln = GameObject.FindGameObjectWithTag("Player").GetComponent<ComunicationAndStatusPlayer>();
        plr_mov = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerMove>();
        //cntrl = GameObject.Find ("Main Camera").GetComponent<CutSceneControl> ();
        //anima = GetComponent<NPCAnim>();
    }
コード例 #8
0
ファイル: HUD.cs プロジェクト: HaroUkino/Uma-Simples-Jornada
 // Use this for initialization
 void Start()
 {
     plr_cm = GameObject.FindGameObjectWithTag ("Player").GetComponent<ComunicationAndStatusPlayer>();
     kptc = GameObject.FindGameObjectWithTag ("Player").GetComponent<KeepinItCool>();
     //cam = GameObject.Find("Main Camera").GetComponent<CamControl>();
 }