using System;
using UnityEngine;
using System.Collections;
using UnityStandardAssets.Characters.ThirdPerson;
public class Multiple_objects : MonoBehaviour {
public GameObject prefab;
public GameObject[] gos;
public int NumberOfObjects;
private ThirdPersonCharacter[] thirdPersonCharacter;
private Animator[] _animator;
private int count = 0;
void Awake()
{
Vector3 v3 = prefab.transform.position;
_animator = new Animator[NumberOfObjects];
gos = new GameObject[NumberOfObjects];
for(int i = 0; i < gos.Length; i++)
{
count = count + 2;
GameObject clone = (GameObject)Instantiate(prefab, Vector3.zero, Quaternion.identity);
gos [i] = clone;
gos [i].transform.position = new Vector3 (v3.x - count, v3.y, v3.z);
_animator [i] = gos[i].GetComponent<Animator>();
Math.Round(Random
ランダムの後にポイントをタイプすると、ランダム:ランダム。 は私だけプロパティの範囲が1つのランダムクラスに存在しないのはなぜですか?
に等しく、も参照していると私は、例えばランダムの変数作成する場合:
Random _random;
をそれから私は_randomと入力します。 私はより多くの武器を手に入れますが、レンジは獲得しません。
私の[RandomGenerator](https://github.com/chanibal/RandomGenerator)ユーティリティのちょうど恥知らずなプラグを、それはあなたの問題を解決しますインスタンス化可能な 'Random'クラスを持ち、値のランダム性をより良く制御します。 –