Exemplo n.º 1
0
        protected override void Awake()
        {
            base.Awake();

            sellerViewController = viewContext.SellerViewController;
            playerLookController = modelContext.PlayerLookController;
            modelController      = modelContext.ModelController;
            backListener         = viewContext.BackButtonListener;
        }
Exemplo n.º 2
0
    // Start is called before the first frame update
    private void Start()
    {
        m_CharacterController = GetComponent <CharacterController>();
        m_playerLook          = GetComponent <PlayerLookController>();
        m_AudioSource         = GetComponent <AudioSource>();
        Character             = GetComponent <Character>();
        PlayerWeaponsManager  = GetComponent <PlayerWeaponsManager>();

        m_HeadBob.Setup(MainCamera, m_StepInterval);
        m_playerLook.Init(transform, RotatePoint);
        m_FovKick.Setup(MainCamera);
        m_OriginalCameraPosition = MainCamera.transform.localPosition;
        m_StepCycle    = 0f;
        m_NextStep     = m_StepCycle / 2f;
        m_Jumping      = false;
        CurrentStamina = MaxStamina;

        Character.Health.onDie     += OnDie;
        Character.Health.onDamaged += OnDamage;

        Instance = this;
    }
Exemplo n.º 3
0
 private void Awake()
 {
     playerLookController = modelContext.PlayerLookController;
 }