game: signing and stamping details
This commit is contained in:
parent
159b219861
commit
70f65d5ea2
4 changed files with 632 additions and 316 deletions
|
@ -327,6 +327,59 @@ MonoBehaviour:
|
|||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!1 &3673460349622681086
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 818460813416213806}
|
||||
- component: {fileID: 576997312921919664}
|
||||
m_Layer: 0
|
||||
m_Name: Stamp-Sign Area
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &818460813416213806
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3673460349622681086}
|
||||
serializedVersion: 2
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 987810662684709338}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!65 &576997312921919664
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3673460349622681086}
|
||||
m_Material: {fileID: 0}
|
||||
m_IncludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_ExcludeLayers:
|
||||
serializedVersion: 2
|
||||
m_Bits: 0
|
||||
m_LayerOverridePriority: 0
|
||||
m_IsTrigger: 0
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.5359076, y: 0.046787053, z: 0.17219605}
|
||||
m_Center: {x: -0.16593587, y: 0.56795377, z: 0.36339006}
|
||||
--- !u!1 &4056581048575082308
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -519,6 +572,7 @@ Transform:
|
|||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 6229768693970997822}
|
||||
- {fileID: 818460813416213806}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -180, z: 0}
|
||||
--- !u!33 &3005634879425423715
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -24,7 +24,10 @@ public class PenInteractor : MonoBehaviour
|
|||
{
|
||||
if (PenSocketInteractor.isPickedUp && collision.gameObject.CompareTag("Paper"))
|
||||
{
|
||||
stampDocScript.SignDocument();
|
||||
if (collision.collider.gameObject.name == "Stamp-Sign Area")
|
||||
{
|
||||
stampDocScript.SignDocument();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -21,23 +21,24 @@ public class StampInteractor : MonoBehaviour
|
|||
{
|
||||
if (StampSocketInteractor.isHeld && collision.gameObject.CompareTag("Paper"))
|
||||
{
|
||||
Debug.Log("paper is stamped");
|
||||
|
||||
if (stampName == "Stamp_Financial")
|
||||
if (collision.collider.gameObject.name == "Stamp-Sign Area")
|
||||
{
|
||||
stampDocScript.StampFinancial();
|
||||
}
|
||||
else if (stampName == "Stamp_Residential")
|
||||
{
|
||||
stampDocScript.StampResidential();
|
||||
}
|
||||
else if (stampName == "Stamp_DV")
|
||||
{
|
||||
stampDocScript.StampDV();
|
||||
}
|
||||
else if (stampName == "Stamp_Disabilities")
|
||||
{
|
||||
stampDocScript.StampDisabilities();
|
||||
if (stampName == "Stamp_Financial")
|
||||
{
|
||||
stampDocScript.StampFinancial();
|
||||
}
|
||||
else if (stampName == "Stamp_Residential")
|
||||
{
|
||||
stampDocScript.StampResidential();
|
||||
}
|
||||
else if (stampName == "Stamp_DV")
|
||||
{
|
||||
stampDocScript.StampDV();
|
||||
}
|
||||
else if (stampName == "Stamp_Disabilities")
|
||||
{
|
||||
stampDocScript.StampDisabilities();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue