void Awake() { _bladeSlicingMechanic = FindObjectOfType <BladeSlicingMechanic>(); Vector2 stickPos = _bladeSlicingMechanic.SlicedPos; transform.localPosition = stickPos; stickPos = Vector2.zero; }
void Awake() { _bladeSlicingMechanic = FindObjectOfType <BladeSlicingMechanic>(); _playerVisualCorrection = FindObjectOfType <PlayerVisualCorrection>(); if (StickName != "MenuStick") { Cross = _playerVisualCorrection.transform.GetChild(0).transform.GetChild(1).gameObject; } _stickCollider = GetComponent <Collider2D>(); SpeedForce = PlayerPrefs.GetFloat("Speed"); // Gradient(); //if (StickSpawner.stickSpawner != null) //{ // SpeedForce = StickSpawner.stickSpawner.Speed; //} }