C#
谁来,将海
独立游戏开发者
展开
-
RTSCamera实现
相机控制脚本 常规RTS相机的移动缩放 using System.Collections; using System.Collections.Generic; using UnityEngine; public class TopCameraController : MonoBehaviour { public Vector2 cameraOffsetXYSpeed = Vector2.one; public Vector2 cameraOffset = Vector2.one...原创 2020-10-07 17:31:07 · 482 阅读 · 0 评论 -
unityAPI实验(一)
- void FixedUpdate(){ - AddGravity(); if(Input.GetKey(KeyCode.Space)){ move.y=Mathf.SmoothDamp(0,1,ref speed,0.1f); Debug.Log("1"); ...原创 2020-02-21 15:22:43 · 194 阅读 · 0 评论