資源簡介
5款Unity3D制作的小游戲?qū)嵗率直貍?img width=510 src=http://www.sh-liguang.com/pic/219821.jpg />
代碼片段和文件信息
using?UnityEngine;
using?System.Collections;
public?class?EggCollider?:?MonoBehaviour?{
????Playerscript?myPlayerscript;
????//Automatically?run?when?a?scene?starts
????void?Awake()
????{
????????myPlayerscript?=?transform.parent.GetComponentyerscript>();
????}
????//Triggered?by?Unity‘s?Physics
void?OnTriggerEnter(Collider?theCollision)
????{
????????//In?this?game?we?don‘t?need?to?check?*what*?we?hit;?it?must?be?the?eggs
????????Gameobject?collisionGO?=?theCollision.gameobject;
????????Destroy(collisionGO);
????????myPlayerscript.theScore++;
????}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
????I.A....????119928??2012-01-26?03:51??Game?3?-?Marble?game\Art\Ballance.fbx
????I.A....?????54757??2012-01-26?03:51??Game?3?-?Marble?game\Art\ball_tex.jpg
????I.A....??????3317??2012-01-26?03:51??Game?3?-?Marble?game\Art\Materials\ballance-me
????I.A....??????3681??2012-01-26?03:52??Game?3?-?Marble?game\Art\Materials\ball_tex.mat
????I.A....??????3678??2012-01-26?03:51??Game?3?-?Marble?game\Art\Materials\Skybox.mat
????I.A....??????3437??2012-01-26?03:52??Game?3?-?Marble?game\Art\Materials\warningstripe.mat
????I.A....??????3599??2012-01-26?03:51??Game?3?-?Marble?game\Art\Materials\wooden?planks.mat
????I.A....????304968??2012-01-26?03:51??Game?3?-?Marble?game\Art\Skybox.jpg
????I.A....??????7946??2012-01-26?03:52??Game?3?-?Marble?game\Art\straightPlatform.prefab
????I.A....??????8088??2012-01-26?03:51??Game?3?-?Marble?game\Art\turnPlatform.prefab
????I.A....??????9911??2012-01-26?03:52??Game?3?-?Marble?game\Art\warningstripe.jpg
????I.A....????182912??2012-01-26?03:51??Game?3?-?Marble?game\Art\Wooden?planks?1.jpg
????I.A....????182912??2012-01-26?03:52??Game?3?-?Marble?game\Art\Wooden?planks.jpg
????I.A....??????8688??2012-01-26?03:52??Game?3?-?Marble?game\Gem.prefab
????I.A....?????59283??2012-01-26?03:51??Game?3?-?Marble?game\Marble?game.unity
????I.A....???????183??2012-01-26?03:51??Game?3?-?Marble?game\sc
????I.A....???????443??2012-01-26?03:52??Game?3?-?Marble?game\sc
????I.A....???????672??2012-01-26?03:51??Game?3?-?Marble?game\sc
????I.A....??????1513??2012-01-26?03:52??Game?3?-?Marble?game\sc
????I.A....????322360??2012-01-26?03:51??Game?4?-?3D?breakout\Art\Breakout.fbx
????I.A....??????3384??2012-01-26?03:51??Game?4?-?3D?breakout\Art\Materials\breakout-ball.mat
????I.A....??????3317??2012-01-26?03:52??Game?4?-?3D?breakout\Art\Materials\breakout-blue.mat
????I.A....??????3547??2012-01-26?03:52??Game?4?-?3D?breakout\Art\Materials\breakout-green.mat
????I.A....??????3317??2012-01-26?03:52??Game?4?-?3D?breakout\Art\Materials\breakout-red.mat
????I.A....??????3317??2012-01-26?03:52??Game?4?-?3D?breakout\Art\Materials\breakout-yellow.mat
????I.A....??????9771??2012-01-26?03:51??Game?4?-?3D?breakout\BallPrefab.prefab
????I.A....????119131??2012-01-26?03:51??Game?4?-?3D?breakout\Breakout.unity
????I.A....??????1877??2012-01-26?03:51??Game?4?-?3D?breakout\NoEnergyLoss.physicMaterial
????I.A....??????8852??2012-01-26?03:51??Game?4?-?3D?breakout\ob
????I.A....???????924??2012-01-26?03:51??Game?4?-?3D?breakout\sc
............此處省略89個(gè)文件信息
評(píng)論
共有 條評(píng)論