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(); }
private void Start() { _rewinder = GameObject.Find("__Scene__").GetComponent <Rewinder>(); Core = GetComponent <PlayerCore>(); WorldUIManager.DisplayBanner(WorldUiElement.LeftBanner); UpdateRewindsCountBanner(_rewindsLeft); StartCoroutine(DelayTeleport()); }
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>(); }
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); }
void Awake() { instance = this; }
private void Awake() { rewindBar = GetComponent <Image>(); rewind = transform.root.GetComponent <Rewinder>(); }