コード例 #1
0
    private void Start()
    {
        aud = GetComponent <AudioSource>();

        // 三分球物件 = 透過類型尋找物件<類型>() - 當要尋找的類型場景上只有一個適用
        threePoint = FindObjectOfType <ThreePoint>();
    }
コード例 #2
0
 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;
 }
コード例 #3
0
    private void Start()
    {
        aud = GetComponent <AudioSource>();

        threePoint = FindObjectOfType <ThreePoint>();
    }
コード例 #4
0
ファイル: GameManager.cs プロジェクト: 1027046y/0424
 private void    Start()
 {
     threePoint = FindObjectOfType <ThreePoint>();
 }