Esempio n. 1
0
        private int _stateSizeCategory = 1;         // 1 = small, 2 = med, 3 = large // TODO: enum

        public RewindConfig(Rewinder rewinder, Config config, IStatable statableCore)
        {
            _rewinder     = rewinder;
            _config       = config;
            _statableCore = statableCore;
            InitializeComponent();
        }
 private void Awake()
 {
     carrier = FindObjectOfType <Carrier>();
     Assert.IsNotNull(carrier, "Carrier not found.");
     rewinder = FindObjectOfType <Rewinder>();
     Assert.IsNotNull(rewinder, "Rewinder not found.");
     menu = GetComponent <PauseMenu>();
     Lock();
 }
Esempio n. 3
0
    private void Start()
    {
        _rewinder = GameObject.Find("__Scene__").GetComponent <Rewinder>();
        Core      = GetComponent <PlayerCore>();

        WorldUIManager.DisplayBanner(WorldUiElement.LeftBanner);
        UpdateRewindsCountBanner(_rewindsLeft);
        StartCoroutine(DelayTeleport());
    }
Esempio n. 4
0
 private void Awake()
 {
     input = FindObjectOfType <InputManager>();
     Assert.IsNotNull(input, "InputManager not found.");
     nonPlayerTrigger = GetComponentInChildren <NonPlayerTrigger>();
     Assert.IsNotNull(input, "NonPlayerTrigger not found.");
     ray      = GetComponent <RayFromCamera>();
     player   = GetComponent <PlayerMovement>();
     rewinder = GetComponent <Rewinder>();
 }
Esempio n. 5
0
    private void Start()
    {
        MovementState = PlayerMovementState.Air;
        _rewinder     = GameObject.Find("__Scene__").GetComponent <Rewinder>();

        _boxCollider     = GetComponent <BoxCollider2D>();
        Collisions       = new PlayerCollisions();
        _playerAbilities = GetComponents <PlayerAbility>();

        if (_raysPerDirection > 1)
        {
            _bounds           = _boxCollider.bounds;
            _widthRaySpacing  = _bounds.size.x / _raysPerDirection;
            _heightRaySpacing = _bounds.size.y / _raysPerDirection;
        }

        _inversePlayerMask = ~(1 << 8);
    }
Esempio n. 6
0
 void Awake()
 {
     instance = this;
 }
Esempio n. 7
0
 private void Awake()
 {
     rewindBar = GetComponent <Image>();
     rewind    = transform.root.GetComponent <Rewinder>();
 }