• 大小: 4.27M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签:

资源简介

游戏见缝插针

资源截图

代码片段和文件信息

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.SceneManagement;

public class GameManager : MonoBehaviour {

    private Transform startPoint;
    private Transform spawnPoint;
    private Pin currentPin;
    private bool isGameOver = false;
    private int score = 0;
    private Camera mainCamera;

    public Text scoreText;
    public Gameobject pinPrefab;
    public float speed = 3;



// Use this for initialization
void Start () {
        startPoint = Gameobject.Find(“StartPoint“).transform;
        spawnPoint = Gameobject.Find(“SpawnPoint“).transform;
        mainCamera = Camera.main;
        SpawnPin();
}

    private void Update()
    {
        if (isGameOver) return;
        if (Input.GetMouseButtonDown(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-10-15 23:14  StickPinProject\
     目录           0  2017-10-15 15:56  StickPinProject\.vs\
     目录           0  2017-10-15 15:56  StickPinProject\.vs\StickPinProject\
     目录           0  2017-10-15 16:10  StickPinProject\.vs\StickPinProject\v15\
     文件       40960  2017-10-15 23:14  StickPinProject\.vs\StickPinProject\v15\.suo
     目录           0  2017-10-15 21:37  StickPinProject\Assets\
     目录           0  2017-10-15 15:27  StickPinProject\Assets\Image\
     文件         191  2017-10-15 12:51  StickPinProject\Assets\Image.meta
     文件        4778  2017-10-15 12:21  StickPinProject\Assets\Image\Circle.png
     文件        1606  2017-10-15 12:21  StickPinProject\Assets\Image\Circle.png.meta
     文件          73  2017-10-15 12:27  StickPinProject\Assets\Image\Pin.png
     文件        1606  2017-10-15 12:27  StickPinProject\Assets\Image\Pin.png.meta
     目录           0  2017-10-15 21:37  StickPinProject\Assets\Prefabs\
     文件         191  2017-10-15 15:28  StickPinProject\Assets\Prefabs.meta
     文件        6125  2017-10-15 21:37  StickPinProject\Assets\Prefabs\Pin.prefab
     文件         209  2017-10-15 16:04  StickPinProject\Assets\Prefabs\Pin.prefab.meta
     目录           0  2017-10-15 21:58  StickPinProject\Assets\Scenes\
     文件         191  2017-10-15 15:28  StickPinProject\Assets\Scenes.meta
     文件       14917  2017-10-15 21:58  StickPinProject\Assets\Scenes\Main.unity
     文件         174  2017-10-15 15:29  StickPinProject\Assets\Scenes\Main.unity.meta
     目录           0  2017-10-15 21:57  StickPinProject\Assets\scripts\
     文件         191  2017-10-15 15:28  StickPinProject\Assets\scripts.meta
     文件        1958  2017-10-15 21:57  StickPinProject\Assets\scripts\GameManager.cs
     文件         262  2017-10-15 16:10  StickPinProject\Assets\scripts\GameManager.cs.meta
     文件        1600  2017-10-15 21:31  StickPinProject\Assets\scripts\Pin.cs
     文件         262  2017-10-15 16:34  StickPinProject\Assets\scripts\Pin.cs.meta
     文件         344  2017-10-15 21:39  StickPinProject\Assets\scripts\PinHead.cs
     文件         262  2017-10-15 21:37  StickPinProject\Assets\scripts\PinHead.cs.meta
     文件         289  2017-10-15 16:13  StickPinProject\Assets\scripts\RotateSelf.cs
     文件         262  2017-10-15 15:55  StickPinProject\Assets\scripts\RotateSelf.cs.meta
     目录           0  2017-10-15 23:14  StickPinProject\Library\
............此处省略490个文件信息

评论

共有 条评论