private void Start() { aud = GetComponent <AudioSource>(); // 三分球物件 = 透過類型尋找物件<類型>() - 當要尋找的類型場景上只有一個適用 threePoint = FindObjectOfType <ThreePoint>(); }
public Form1() { InitializeComponent(); maxCount = 512; poligonCount = 5; pointSet = new ThreePoint[maxCount * 2]; enemySet = new fourPoint[maxCount]; enemySet1 = new fourPoint[maxCount]; enemySet2 = new fourPoint[maxCount]; enemySet3 = new fourPoint[maxCount]; for (int i = 0; i < maxCount; i++) { enemySet[i] = new fourPoint(); enemySet1[i] = new fourPoint(); enemySet2[i] = new fourPoint(); enemySet3[i] = new fourPoint(); } for (int i = 0; i < maxCount * 2; i++) { pointSet[i] = new ThreePoint(); } radianVal = 0; map = 0; user = new PointF[3]; userRadian = 270; enemyOk = new bool[4]; for (int i = 0; i < 4; i++) { enemyOk[i] = false; } controlSpeed = 15; color = new Thread(new ThreadStart(fontHi)); color.Start(); speed = 0; smalePoli = new double[12]; smalePoli[0] = 30.0;//심장 뛰는 주기 smalePoli[1] = 30.0; smalePoli[2] = 20.0; smalePoli[3] = 15.0; smalePoli[4] = 15.0; smalePoli[5] = 15.0; smalePoli[6] = 20.0; smalePoli[7] = 23.0; smalePoli[8] = 22.0; smalePoli[9] = 18.0; smalePoli[10] = 19.0; smalePoli[11] = 20.0; }
private void Start() { aud = GetComponent <AudioSource>(); threePoint = FindObjectOfType <ThreePoint>(); }
private void Start() { threePoint = FindObjectOfType <ThreePoint>(); }