Skip to content

Instantly share code, notes, and snippets.

@IosysPio
Created June 14, 2019 13:24
Show Gist options
  • Save IosysPio/aac0b2e2c8844c2c14764a8e5aee1cb9 to your computer and use it in GitHub Desktop.
Save IosysPio/aac0b2e2c8844c2c14764a8e5aee1cb9 to your computer and use it in GitHub Desktop.
--- 作者表示
print("> pioTestScript by Pio")
print("> ver 2019-06-14 debug #001")
--- 2019-04-17 #001 新規作成
SDEBUG = 1 --- デバッグモード 1以上
_VA = vci.assets
_VM = vci.me
_DATE = vci.me.Time
_CLOCK = os.clock
_MSG = vci.message
_VS = vci.state
---[SubItemの所有権]アイテムにCollider(Trigger)が接触したときに呼ばれる。
---@param item string @SubItem名
---@param hit string @Collider名
function onTriggerEnter(item, hit)
if (SDEBUG > 0) then print ("M : TriggerEnter ; "..item.." > "..hit) end
end
---[SubItemの所有権]アイテムにCollider(not Trigger)が接触したときに呼ばれる。
---@param item string @SubItem名
---@param hit string @Collider名
function onCollisionEnter(item, hit)
if (SDEBUG > 0) then print ("M : CollisionEnter ; "..item.." > "..hit) end
_VA._ALL_PlayAudioFromIndex(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment