ºÇ½ª¹¹¿·¡§
orika_ex_miyako 2020ǯ11·î07Æü(ÅÚ) 15:33:07ÍúÎò
¤³¤³¤Ç¤Ï¡¢¥¹¥Æ¡¼¥¸¥¯¥ê¥¢¤ò¥ì¥Ù¥ë¤Ë¤è¤Ã¤Æ´ÉÍý¤·¤Æ¤¤¤ë¤Î¤Ç¡¢¤½¤ì¤òÍøÍѤ·¤Þ¤¹¡£
StartShot.cs¤ò½¤Àµ¤·¤Þ¤¹¡£
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class StartShot : MonoBehaviour {
public float addSpeed; // ¤³¤³¤òÄɲä·¤Þ¤¹¡£²Ã»»¤µ¤ì¤ë·¸¿ô¤òÀßÄꤹ¤ë¡£
// Use this for initialization
void Start () {
transform.eulerAngles = new Vector3(0, Random.Range(30, 120), 0);
gameObject.GetComponent<Rigidbody>().AddForce(transform.forward * (500 + (LevelManager.level * addSpeed))); <= ¤³¤³¤ò½¤Àµ¤·¤Þ¤¹¡£
}
// Update is called once per frame
void Update () {
}
}
- ¥«¥Æ¥´¥ê¡§
- ¿Ê³Ø/¥¹¥¯¡¼¥ë
- Áí¹ç




¥³¥á¥ó¥È¤ò¤«¤¯