...
 
Commits (2)
......@@ -35633,12 +35633,12 @@ PrefabInstance:
- target: {fileID: 52145075018362285, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_LocalPosition.x
value: 45.37
value: -7.181
objectReference: {fileID: 0}
- target: {fileID: 52145075018362285, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_LocalPosition.y
value: 15.48
value: 40.034
objectReference: {fileID: 0}
- target: {fileID: 52145075018362285, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
......@@ -35685,6 +35685,45 @@ PrefabInstance:
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 52145075018362285, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_LocalScale.x
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: 52145075018362285, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_LocalScale.y
value: 0.4
objectReference: {fileID: 0}
- target: {fileID: 52145075018362291, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_GroundedOffset.x
value: 0.04
objectReference: {fileID: 0}
- target: {fileID: 52145075018362291, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_GroundCheckDistance
value: 0.21
objectReference: {fileID: 0}
- target: {fileID: 52145075018362291, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_GroundedOffset.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 52145075018362291, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_GroundedRadius
value: 0.26
objectReference: {fileID: 0}
- target: {fileID: 52145075018362284, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_Material
value:
objectReference: {fileID: 0}
- target: {fileID: 352228602, guid: 2e3528907311e438dab0d393127aa332, type: 3}
propertyPath: infusingTime
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5703659376326297473, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: savePointList.Array.size
......@@ -35709,6 +35748,31 @@ PrefabInstance:
propertyPath: LostLife.m_PersistentCalls.m_Calls.Array.data[0].m_Target
value:
objectReference: {fileID: 1777049077}
- target: {fileID: 2596175625849265254, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_Direction
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2596175625849265254, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_Size.x
value: 3
objectReference: {fileID: 0}
- target: {fileID: 2596175625849265254, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_Offset.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2596175625849265254, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_Offset.y
value: 0.3
objectReference: {fileID: 0}
- target: {fileID: 2596175625849265254, guid: 2e3528907311e438dab0d393127aa332,
type: 3}
propertyPath: m_Size.y
value: 3
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 2e3528907311e438dab0d393127aa332, type: 3}
--- !u!4 &1741470320 stripped
......@@ -78,7 +78,7 @@ public class MovementController : MonoBehaviour
m_Grounded = false;
Vector3 col = r_Collider.offset;
GroundCheckDistance = r_Collider.size.y / 2 * transform.localScale.y + 0.2f;
GroundCheckDistance = r_Collider.size.y / 6 * transform.localScale.y + 0.2f;
// The player is grounded if a circlecast to the groundcheck position hits anything designated as ground
// This can be done using layers instead but Sample Assets will not overwrite your project settings.
......
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Timers;
......@@ -155,7 +155,7 @@ public class PlayerAnimation : MonoBehaviour
m_CurrentAirCharges = r_State.GetCharges();
var scaleFactor = 1.0f + m_CurrentAirCharges * (m_maxScale - 1.0f) / 5.0f;
var direction = Mathf.Sign(this.gameObject.transform.localScale.x);
var newScale = new Vector3(direction * scaleFactor * m_OriginScale.x, scaleFactor * m_OriginScale.x, 0.0f);
var newScale = new Vector3(direction * scaleFactor * m_OriginScale.x, scaleFactor * m_OriginScale.x, 1.0f);
this.gameObject.transform.localScale = newScale;
m_PreviousAirCharges = m_CurrentAirCharges;
// m_CurrentAirCharges = r_State.GetCharges();
......