Exemplo n.º 1
0
    void Start()
    {
        _guard     = GameObject.FindGameObjectWithTag("Guard");
        _leadMover = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>();
        _writer    = GetComponentInParent <DescriptionWriter>();

        //StartCoroutine(WriteTutorial());
        StartCoroutine(ShowGuard());
    }
    void Start()
    {
        _inventory  = GameObject.FindGameObjectWithTag("Inventory").GetComponent <InventoryLogic>();
        _firstCoin  = _inventory.ReturnToolDb().ToolDatabase[1];
        _writer     = GetComponentInParent <DescriptionWriter>();
        _tutorial   = GetComponent <TutorialVoice>();
        _leadMover  = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>();
        _firstClick = GameObject.FindGameObjectWithTag("Guard").GetComponent <FirstClick>();
        _cameraFx   = GameObject.FindGameObjectWithTag("CameraGroup").GetComponent <CameraController>();

        _tutFunc = new CommonTutorialFunctions();
        _key     = _tutFunc.GetLootables("key");
    }
Exemplo n.º 3
0
    void Start()
    {
        GameObject _description = GameObject.FindGameObjectWithTag("DescriptionBox");

        _tutorial  = _description.GetComponent <TutorialVoice>();
        _writer    = _description.GetComponentInParent <DescriptionWriter>();
        _leadMover = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>();
        _cameraFx  = GameObject.FindGameObjectWithTag("CameraGroup").GetComponent <CameraController>();

        _player = GameObject.FindGameObjectWithTag("Player");

        _tutFunc = new CommonTutorialFunctions();
        _coin    = _tutFunc.GetLootables("coin");
    }
Exemplo n.º 4
0
    void Awake()
    {
        //_flipLerp = transform.GetChild(1).GetComponent<FlipLerp>();
        _anim         = gameObject.GetComponent <Animator>();
        _playerRb     = gameObject.GetComponent <Rigidbody2D>();
        _leadMovement = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>();
        _detectEnvi   = 1 << _enviMask;
        _detectGround = 1 << _groundMask;

        _jumpLayerMask = _detectEnvi | _detectGround;

        _soundHandler = GetComponent <PlayerSoundHandler>();
        _soundHandler.SetRunningSound();
    }
 void Awake()
 {
     _leadMover = GameObject.FindGameObjectWithTag("CameraLead").GetComponent <CameraLeadController>();
     _cameraFx  = GameObject.FindGameObjectWithTag("CameraGroup").GetComponent <CameraController>();
 }