Ajout de l'animation responsive du tchat (et du collier)
Animator fait, condition de déclenchement: booleen "etat_tchat" sur 1 => déclenchement du lever du tchat sur 0 => abaissement du tchat Premier script pour déclenchement au clic, mais ne fonctionne pas. si quelqu'un à une idée...
This commit is contained in:
parent
a2ba1c1759
commit
6c0713e6f9
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 00e2af6c63dfa2a4781ac59573a7a0ae
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,5 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 8b6b8243198dd424e841b9e104e7b591
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
userData:
|
|
@ -0,0 +1,123 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!91 &9100000
|
||||
AnimatorController:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: tchat_complet
|
||||
serializedVersion: 2
|
||||
m_AnimatorParameters:
|
||||
- m_Name: etat_tchat
|
||||
m_Type: 4
|
||||
m_DefaultFloat: 0
|
||||
m_DefaultInt: 0
|
||||
m_DefaultBool: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
m_AnimatorLayers:
|
||||
- serializedVersion: 3
|
||||
m_Name: Base Layer
|
||||
m_StateMachine: {fileID: 110700000}
|
||||
m_Mask: {fileID: 0}
|
||||
m_BlendingMode: 0
|
||||
m_SyncedLayerIndex: -1
|
||||
m_StateMachineMotionSetIndex: 0
|
||||
m_DefaultWeight: 0
|
||||
m_IKPass: 0
|
||||
m_SyncedLayerAffectsTiming: 0
|
||||
m_Controller: {fileID: 9100000}
|
||||
--- !u!1101 &110100000
|
||||
Transition:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_SrcState: {fileID: 110200000}
|
||||
m_DstState: {fileID: 110299434}
|
||||
m_TransitionDuration: .576923072
|
||||
m_TransitionOffset: 0
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 2
|
||||
m_ConditionEvent: etat_tchat
|
||||
m_EventTreshold: 0
|
||||
m_ExitTime: .423076928
|
||||
m_Atomic: 1
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_CanTransitionToSelf: 0
|
||||
--- !u!1101 &110133210
|
||||
Transition:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name:
|
||||
m_SrcState: {fileID: 110299434}
|
||||
m_DstState: {fileID: 110200000}
|
||||
m_TransitionDuration: .576923072
|
||||
m_TransitionOffset: 0
|
||||
m_Conditions:
|
||||
- m_ConditionMode: 1
|
||||
m_ConditionEvent: etat_tchat
|
||||
m_EventTreshold: 0
|
||||
m_ExitTime: .423076928
|
||||
m_Atomic: 1
|
||||
m_Solo: 0
|
||||
m_Mute: 0
|
||||
m_CanTransitionToSelf: 0
|
||||
--- !u!1102 &110200000
|
||||
State:
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: tchat_up
|
||||
m_Speed: 1
|
||||
m_CycleOffset: 0
|
||||
m_Motions:
|
||||
- {fileID: 7400000, guid: cf807dffd8aae4e49a1d5f40102f2f21, type: 2}
|
||||
m_ParentStateMachine: {fileID: 110700000}
|
||||
m_Position: {x: 156, y: -180, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_Mirror: 0
|
||||
m_Tag:
|
||||
--- !u!1102 &110299434
|
||||
State:
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: tchat_down
|
||||
m_Speed: -1
|
||||
m_CycleOffset: 0
|
||||
m_Motions:
|
||||
- {fileID: 7400000, guid: cf807dffd8aae4e49a1d5f40102f2f21, type: 2}
|
||||
m_ParentStateMachine: {fileID: 110700000}
|
||||
m_Position: {x: 156, y: -48, z: 0}
|
||||
m_IKOnFeet: 0
|
||||
m_Mirror: 0
|
||||
m_Tag:
|
||||
--- !u!1107 &110700000
|
||||
StateMachine:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 3
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: Base Layer
|
||||
m_DefaultState: {fileID: 110200000}
|
||||
m_States:
|
||||
- {fileID: 110200000}
|
||||
- {fileID: 110299434}
|
||||
m_ChildStateMachine: []
|
||||
m_ChildStateMachinePosition: []
|
||||
m_OrderedTransitions:
|
||||
data:
|
||||
first: {fileID: 110299434}
|
||||
second:
|
||||
- {fileID: 110133210}
|
||||
data:
|
||||
first: {fileID: 110200000}
|
||||
second:
|
||||
- {fileID: 110100000}
|
||||
m_MotionSetCount: 1
|
||||
m_AnyStatePosition: {x: -168, y: -12, z: 0}
|
||||
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 765cab0068722214db2c2a1d3e4699f7
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -0,0 +1,266 @@
|
|||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!74 &7400000
|
||||
AnimationClip:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_Name: tchat_up
|
||||
serializedVersion: 4
|
||||
m_AnimationType: 2
|
||||
m_Compressed: 0
|
||||
m_UseHighQualityCurve: 1
|
||||
m_RotationCurves: []
|
||||
m_CompressedRotationCurves: []
|
||||
m_PositionCurves: []
|
||||
m_ScaleCurves: []
|
||||
m_FloatCurves:
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 313
|
||||
inSlope: -722.307678
|
||||
outSlope: -722.307678
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 0
|
||||
inSlope: -722.307678
|
||||
outSlope: -722.307678
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_SizeDelta.y
|
||||
path:
|
||||
classID: 224
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: -142
|
||||
inSlope: 343.846161
|
||||
outSlope: 343.846161
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 7
|
||||
inSlope: 343.846161
|
||||
outSlope: 343.846161
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_AnchoredPosition.y
|
||||
path: "tchat_entr\xE9e"
|
||||
classID: 224
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 221
|
||||
inSlope: -343.846161
|
||||
outSlope: -343.846161
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 72
|
||||
inSlope: -343.846161
|
||||
outSlope: -343.846161
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_SizeDelta.y
|
||||
path: "tchat_entr\xE9e"
|
||||
classID: 224
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 293.045593
|
||||
inSlope: -424.229523
|
||||
outSlope: -424.229523
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 109.212807
|
||||
inSlope: -424.229523
|
||||
outSlope: -424.229523
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_Size.y
|
||||
path:
|
||||
classID: 61
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 148.268555
|
||||
inSlope: -212.117325
|
||||
outSlope: -212.117325
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 56.3510437
|
||||
inSlope: -212.117325
|
||||
outSlope: -212.117325
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_Center.y
|
||||
path:
|
||||
classID: 61
|
||||
script: {fileID: 0}
|
||||
m_PPtrCurves: []
|
||||
m_SampleRate: 30
|
||||
m_WrapMode: 0
|
||||
m_Bounds:
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
m_Extent: {x: 0, y: 0, z: 0}
|
||||
m_ClipBindingConstant:
|
||||
genericBindings:
|
||||
- path: 0
|
||||
attribute: 38095219
|
||||
script: {fileID: 0}
|
||||
classID: 224
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
- path: 678305014
|
||||
attribute: 538195251
|
||||
script: {fileID: 0}
|
||||
classID: 224
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
- path: 678305014
|
||||
attribute: 38095219
|
||||
script: {fileID: 0}
|
||||
classID: 224
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
- path: 0
|
||||
attribute: 2368279999
|
||||
script: {fileID: 0}
|
||||
classID: 61
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
- path: 0
|
||||
attribute: 1394318531
|
||||
script: {fileID: 0}
|
||||
classID: 61
|
||||
customType: 0
|
||||
isPPtrCurve: 0
|
||||
pptrCurveMapping: []
|
||||
m_AnimationClipSettings:
|
||||
serializedVersion: 2
|
||||
m_StartTime: 0
|
||||
m_StopTime: .433333337
|
||||
m_OrientationOffsetY: 0
|
||||
m_Level: 0
|
||||
m_CycleOffset: 0
|
||||
m_LoopTime: 0
|
||||
m_LoopBlend: 0
|
||||
m_LoopBlendOrientation: 0
|
||||
m_LoopBlendPositionY: 0
|
||||
m_LoopBlendPositionXZ: 0
|
||||
m_KeepOriginalOrientation: 0
|
||||
m_KeepOriginalPositionY: 1
|
||||
m_KeepOriginalPositionXZ: 0
|
||||
m_HeightFromFeet: 0
|
||||
m_Mirror: 0
|
||||
m_EditorCurves:
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 313
|
||||
inSlope: -722.307678
|
||||
outSlope: -722.307678
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 0
|
||||
inSlope: -722.307678
|
||||
outSlope: -722.307678
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_SizeDelta.y
|
||||
path:
|
||||
classID: 224
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: -142
|
||||
inSlope: 343.846161
|
||||
outSlope: 343.846161
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 7
|
||||
inSlope: 343.846161
|
||||
outSlope: 343.846161
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_AnchoredPosition.y
|
||||
path: "tchat_entr\xE9e"
|
||||
classID: 224
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 221
|
||||
inSlope: -343.846161
|
||||
outSlope: -343.846161
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 72
|
||||
inSlope: -343.846161
|
||||
outSlope: -343.846161
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_SizeDelta.y
|
||||
path: "tchat_entr\xE9e"
|
||||
classID: 224
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 293.045593
|
||||
inSlope: -424.229523
|
||||
outSlope: -424.229523
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 109.212807
|
||||
inSlope: -424.229523
|
||||
outSlope: -424.229523
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_Size.y
|
||||
path:
|
||||
classID: 61
|
||||
script: {fileID: 0}
|
||||
- curve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- time: 0
|
||||
value: 148.268555
|
||||
inSlope: -212.117325
|
||||
outSlope: -212.117325
|
||||
tangentMode: 10
|
||||
- time: .433333337
|
||||
value: 56.3510437
|
||||
inSlope: -212.117325
|
||||
outSlope: -212.117325
|
||||
tangentMode: 10
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
attribute: m_Center.y
|
||||
path:
|
||||
classID: 61
|
||||
script: {fileID: 0}
|
||||
m_EulerEditorCurves: []
|
||||
m_Events: []
|
|
@ -0,0 +1,4 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cf807dffd8aae4e49a1d5f40102f2f21
|
||||
NativeFormatImporter:
|
||||
userData:
|
|
@ -733,6 +733,128 @@ MeshFilter:
|
|||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 49945084}
|
||||
m_Mesh: {fileID: 4300416, guid: 027c250b9f20b1e49903b3b4c633cd9d, type: 3}
|
||||
--- !u!1 &52053178
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 52053179}
|
||||
- 222: {fileID: 52053182}
|
||||
- 114: {fileID: 52053181}
|
||||
- 114: {fileID: 52053180}
|
||||
m_Layer: 5
|
||||
m_Name: "tchat_entr\xE9e"
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &52053179
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 52053178}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1464389819}
|
||||
- {fileID: 298869982}
|
||||
m_Father: {fileID: 1108071681}
|
||||
m_RootOrder: 1
|
||||
m_AnchorMin: {x: .5, y: .5}
|
||||
m_AnchorMax: {x: .5, y: .5}
|
||||
m_AnchoredPosition: {x: -244.699997, y: -142}
|
||||
m_SizeDelta: {x: 377, y: 221}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!114 &52053180
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 52053178}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 575553740, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: .960784316, g: .960784316, b: .960784316, a: 1}
|
||||
m_PressedColor: {r: .784313738, g: .784313738, b: .784313738, a: 1}
|
||||
m_DisabledColor: {r: .784313738, g: .784313738, b: .784313738, a: .501960814}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: .100000001
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 52053181}
|
||||
m_TextComponent: {fileID: 298869983}
|
||||
m_Placeholder: {fileID: 1464389820}
|
||||
m_ContentType: 0
|
||||
m_InputType: 0
|
||||
m_KeyboardType: 0
|
||||
m_LineType: 0
|
||||
m_HideMobileInput: 0
|
||||
m_CharacterValidation: 0
|
||||
m_CharacterLimit: 0
|
||||
m_EndEdit:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.InputField+SubmitEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
m_OnValueChange:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_TypeName: UnityEngine.UI.InputField+OnChangeEvent, UnityEngine.UI, Version=1.0.0.0,
|
||||
Culture=neutral, PublicKeyToken=null
|
||||
m_SelectionColor: {r: .65882355, g: .807843149, b: 1, a: .752941191}
|
||||
m_Text:
|
||||
m_CaretBlinkRate: 1.70000005
|
||||
--- !u!114 &52053181
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 52053178}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .75686276, g: .75686276, b: .75686276, a: 1}
|
||||
m_Sprite: {fileID: 10911, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 0
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!222 &52053182
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 52053178}
|
||||
--- !u!1 &55143256
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -3903,6 +4025,72 @@ MeshFilter:
|
|||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 294193132}
|
||||
m_Mesh: {fileID: 4300268, guid: 027c250b9f20b1e49903b3b4c633cd9d, type: 3}
|
||||
--- !u!1 &298869981
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 298869982}
|
||||
- 222: {fileID: 298869984}
|
||||
- 114: {fileID: 298869983}
|
||||
m_Layer: 5
|
||||
m_Name: Text
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &298869982
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 298869981}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 52053179}
|
||||
m_RootOrder: 1
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -20, y: -13}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!114 &298869983
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 298869981}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .75686276, g: .75686276, b: .75686276, a: 1}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_RichText: 0
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text:
|
||||
--- !u!222 &298869984
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 298869981}
|
||||
--- !u!1 &303740559
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -12074,6 +12262,81 @@ MeshFilter:
|
|||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1105197313}
|
||||
m_Mesh: {fileID: 4300504, guid: 027c250b9f20b1e49903b3b4c633cd9d, type: 3}
|
||||
--- !u!1 &1108071680
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 1108071681}
|
||||
- 61: {fileID: 1108071682}
|
||||
- 95: {fileID: 1108071683}
|
||||
- 114: {fileID: 1108071684}
|
||||
m_Layer: 5
|
||||
m_Name: tchat_complet
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1108071681
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1108071680}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
- {fileID: 1425730764}
|
||||
- {fileID: 52053179}
|
||||
m_Father: {fileID: 1981988301}
|
||||
m_RootOrder: 5
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 0, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 508, y: 313}
|
||||
m_Pivot: {x: 0, y: 0}
|
||||
--- !u!61 &1108071682
|
||||
BoxCollider2D:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1108071680}
|
||||
m_Enabled: 1
|
||||
m_Material: {fileID: 0}
|
||||
m_IsTrigger: 0
|
||||
m_Size: {x: 418.452545, y: 293.045593}
|
||||
m_Center: {x: 212.969238, y: 148.268555}
|
||||
--- !u!95 &1108071683
|
||||
Animator:
|
||||
serializedVersion: 3
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1108071680}
|
||||
m_Enabled: 1
|
||||
m_Avatar: {fileID: 0}
|
||||
m_Controller: {fileID: 9100000, guid: 765cab0068722214db2c2a1d3e4699f7, type: 2}
|
||||
m_CullingMode: 0
|
||||
m_UpdateMode: 0
|
||||
m_ApplyRootMotion: 1
|
||||
m_HasTransformHierarchy: 1
|
||||
m_AllowConstantClipSamplingOptimization: 1
|
||||
--- !u!114 &1108071684
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1108071680}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: aab5a535908bfb14284dca66586cb1da, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
anim: {fileID: 0}
|
||||
--- !u!1 &1115721615
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -14134,7 +14397,7 @@ RectTransform:
|
|||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1981988301}
|
||||
m_RootOrder: 5
|
||||
m_RootOrder: 6
|
||||
m_AnchorMin: {x: .877520859, y: 0}
|
||||
m_AnchorMax: {x: 1, y: .224165782}
|
||||
m_AnchoredPosition: {x: 0, y: -6.10351562e-05}
|
||||
|
@ -15476,6 +15739,67 @@ MeshFilter:
|
|||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1422507895}
|
||||
m_Mesh: {fileID: 4300420, guid: 027c250b9f20b1e49903b3b4c633cd9d, type: 3}
|
||||
--- !u!1 &1425730763
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 1425730764}
|
||||
- 222: {fileID: 1425730766}
|
||||
- 114: {fileID: 1425730765}
|
||||
m_Layer: 5
|
||||
m_Name: tchat_fond
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1425730764
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1425730763}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1108071681}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: .5, y: .5}
|
||||
m_AnchorMax: {x: .5, y: .5}
|
||||
m_AnchoredPosition: {x: -256.700012, y: -156}
|
||||
m_SizeDelta: {x: 440, y: 278.999939}
|
||||
m_Pivot: {x: -9.31322575e-09, y: 0}
|
||||
--- !u!114 &1425730765
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1425730763}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .470588237, g: .470588237, b: .470588237, a: 1}
|
||||
m_Sprite: {fileID: 21300000, guid: 68beace9286e3944ebd1505d1dba43dc, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 1
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 1
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 1
|
||||
--- !u!222 &1425730766
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1425730763}
|
||||
--- !u!1 &1428530347
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -16306,6 +16630,72 @@ MeshFilter:
|
|||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1460315425}
|
||||
m_Mesh: {fileID: 4300110, guid: 027c250b9f20b1e49903b3b4c633cd9d, type: 3}
|
||||
--- !u!1 &1464389818
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 1464389819}
|
||||
- 222: {fileID: 1464389821}
|
||||
- 114: {fileID: 1464389820}
|
||||
m_Layer: 5
|
||||
m_Name: Placeholder
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1464389819
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1464389818}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 52053179}
|
||||
m_RootOrder: 0
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: -.5}
|
||||
m_SizeDelta: {x: -20, y: -13}
|
||||
m_Pivot: {x: .5, y: .5}
|
||||
--- !u!114 &1464389820
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1464389818}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 708705254, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .823529422, g: .823529422, b: .823529422, a: .5}
|
||||
m_FontData:
|
||||
m_Font: {fileID: 10102, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_FontSize: 14
|
||||
m_FontStyle: 2
|
||||
m_BestFit: 0
|
||||
m_MinSize: 10
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: Enter text...
|
||||
--- !u!222 &1464389821
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1464389818}
|
||||
--- !u!1 &1467449623
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -16887,67 +17277,6 @@ MeshFilter:
|
|||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1524406401}
|
||||
m_Mesh: {fileID: 4300158, guid: 027c250b9f20b1e49903b3b4c633cd9d, type: 3}
|
||||
--- !u!1 &1527570889
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
serializedVersion: 4
|
||||
m_Component:
|
||||
- 224: {fileID: 1527570890}
|
||||
- 222: {fileID: 1527570892}
|
||||
- 114: {fileID: 1527570891}
|
||||
m_Layer: 5
|
||||
m_Name: tchat
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1527570890
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1527570889}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1981988301}
|
||||
m_RootOrder: 6
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: .229000017, y: .252500564}
|
||||
m_AnchoredPosition: {x: -2.14576721e-06, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: -9.31322575e-09, y: 0}
|
||||
--- !u!114 &1527570891
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1527570889}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: -765806418, guid: f5f67c52d1564df4a8936ccd202a3bd8, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: .470588237, g: .470588237, b: .470588237, a: 1}
|
||||
m_Sprite: {fileID: 21300000, guid: 68beace9286e3944ebd1505d1dba43dc, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 1
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
--- !u!222 &1527570892
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_PrefabParentObject: {fileID: 0}
|
||||
m_PrefabInternal: {fileID: 0}
|
||||
m_GameObject: {fileID: 1527570889}
|
||||
--- !u!1 &1531602778
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -22354,8 +22683,8 @@ RectTransform:
|
|||
- {fileID: 500651524}
|
||||
- {fileID: 1962735454}
|
||||
- {fileID: 235015810}
|
||||
- {fileID: 1108071681}
|
||||
- {fileID: 1300676963}
|
||||
- {fileID: 1527570890}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 2
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class tchat_anim : MonoBehaviour {
|
||||
|
||||
|
||||
public Animator anim;
|
||||
// Use this for initialization
|
||||
void Start () {
|
||||
|
||||
anim = gameObject.GetComponent<Animator> ();
|
||||
anim.SetBool ("etat_tchat",false);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update () {
|
||||
|
||||
}
|
||||
|
||||
|
||||
void OnMouseDown(){
|
||||
//Move to position
|
||||
|
||||
if (anim.GetBool ("etat_tchat") == false) {
|
||||
anim.SetBool ("etat_tchat", true);
|
||||
}
|
||||
|
||||
|
||||
if (anim.GetBool ("etat_tchat") == true) {
|
||||
anim.SetBool ("etat_tchat", false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
fileFormatVersion: 2
|
||||
guid: aab5a535908bfb14284dca66586cb1da
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
Loading…
Reference in New Issue