摘要: //// ViewController.swift// SwiftLucky//// Created by buzz on 15/7/26.// Copyright (c) 2015年 lucky. All rights reserved.//import UIKitclass ViewCo... 阅读全文
posted @ 2015-07-26 19:38 Cvjar 阅读(266) 评论(0) 推荐(0)
摘要: //// ViewController.m// helloWorld//// Created by buzz on 15/7/18.// Copyright (c) 2015年 lucky. All rights reserved.//#import "ViewController.h"@i... 阅读全文
posted @ 2015-07-21 15:04 Cvjar 阅读(173) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-06-19 13:23 Cvjar 阅读(705) 评论(0) 推荐(0)
摘要: 1.is:检查对象类型是否兼容制定类型。返回true,false bool x = a is b;2.as: 效率高于is因为B为父类,子类可以转换为父类,故b不等于空,无输出public class main { public static void Main () ... 阅读全文
posted @ 2015-06-16 12:06 Cvjar 阅读(191) 评论(0) 推荐(0)
摘要: 1.新建Buttom2.panel里面加下拉buttomusing UnityEngine;using System.Collections;public class DropDownList : MonoBehaviour { public GameObject panel; void... 阅读全文
posted @ 2015-06-15 18:22 Cvjar 阅读(1289) 评论(0) 推荐(0)
摘要: 1.添加Button(Script)Using UnityEngine.UI;RectTransfrom reT = GetComponent();reT.sizeDelta = new Vector2(50, 50); //对应width,heightmomo按钮事件侦听:http://www.... 阅读全文
posted @ 2015-06-11 12:49 Cvjar 阅读(463) 评论(0) 推荐(0)
摘要: 生成AndroidStudio工程: (0)建立一个新工程;导入Unity生成的工程建立另一个export工程。 (1)把export工程libs下的unity-classes.jar文件拷贝到新工程的libs文件夹。然后,右键点击选择Add as Library。 (2)把export工程m... 阅读全文
posted @ 2015-06-09 12:29 Cvjar 阅读(2277) 评论(0) 推荐(0)
摘要: 1. 查找Activity中override方法: 右击 - Generate...(com+n) - Override Methods...2. 调用other Activity: MyApp myApp;@Override public boolean onTouchEvent(Motio... 阅读全文
posted @ 2015-06-05 12:18 Cvjar 阅读(176) 评论(0) 推荐(0)
摘要: 获取摄像机视图窗口区域:camera.ViewportToWorldPoint(newVector3(0,1,10.0f)) void OnDrawGizmosSelected(){ print (camera.ViewportToWorldPoint (new Vector3 (0... 阅读全文
posted @ 2015-06-03 13:34 Cvjar 阅读(273) 评论(0) 推荐(0)
摘要: Rigidbody:Drag: 阻力Is Kinematic: 勾选则不受重力的影响,需要人为控制刚体Collision Detection: 碰撞检测模式http://game.ceeger.com/Script/Rigidbody/Rigidbody.collisionDetectionMode... 阅读全文
posted @ 2015-06-03 12:07 Cvjar 阅读(288) 评论(0) 推荐(0)