void Awake() { pj = GetComponent <PlayerJumpBehaviour>(); rb = GetComponent <Rigidbody2D>(); ait = GetComponent <ActiveInTimeLayerBehaviour>(); cb = GetComponent <CameraBehaviour>(); }
void Awake() { spawnPos = transform.position; playerData = new PlayerData(spawnPos, TimeLayer.First); activeLayer = GetComponent <ActiveInTimeLayerBehaviour>(); rb = GetComponent <Rigidbody2D>(); sr = GetComponent <SpriteRenderer>(); }
void Awake() { ait = GetComponent <ActiveInTimeLayerBehaviour>(); }
void Awake() { rb = GetComponent <Rigidbody2D>(); ait = GetComponent <ActiveInTimeLayerBehaviour>(); playerAnimations = GetComponent <Animator>(); }