コード例 #1
0
    // Use this for initialization
    void Start()
    {
        player          = GameObject.FindGameObjectWithTag("Player");
        alexObservation = player.GetComponent <AlexDialogueLvl_1andTutorial> ();

        goRenderer         = GetComponent <SpriteRenderer> ();
        characterBehaviour = player.GetComponent <CharacterBehaviour> ();
        gameController     = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>();
    }
コード例 #2
0
    //Use this for initialization
    void Start()
    {
        playerStats  = player.GetComponent <CharacterBehaviour>();
        hud          = gameObject.GetComponent <HUD>();
        travelSprite = travelSpritesGo.GetComponent <PlaySprite>();

        if (level == 2)
        {
            Debug.Log("FUNCIONA VANISHED Y");
            yVanished2 = -3.1f;
            yVanished1 = -10.4f;
        }

        alexDialogue = player.GetComponent <AlexDialogueLvl_1andTutorial> ();

        if (level == 2)
        {
            onTutorial = false;
        }
    }
コード例 #3
0
 void Start()
 {
     gameControllerGo = GameObject.FindGameObjectWithTag("GameController");
     gameController   = gameControllerGo.GetComponent <GameController> ();
     alexMonologue    = GameObject.FindGameObjectWithTag("Player").GetComponent <AlexDialogueLvl_1andTutorial> ();
 }
コード例 #4
0
 // Use this for initialization
 void Start()
 {
     levelManager = gameController.GetComponent <LevelManager> ();
     monologue    = GameObject.FindGameObjectWithTag("Player").GetComponent <AlexDialogueLvl_1andTutorial> ();
 }
コード例 #5
0
    public void ListenToPrivateConversation()
    {
        AlexDialogueLvl_1andTutorial alexMonologue = character.GetComponent <AlexDialogueLvl_1andTutorial> ();

        alexMonologue.AlexsObservations("PrivateConversation");
    }