コード例 #1
0
    public float amp = 14; // arbitrary max movement, set for each one manually (terrible, i know)

    void Start()
    {
        astro         = GameObject.FindObjectOfType <Player>();
        boss          = GameObject.FindObjectOfType <MazeMgr>();
        speed         = Random.Range(2.0f, 9.0f);
        startPosition = transform.position;
    }
コード例 #2
0
 void Start()
 {
     m           = GameObject.FindObjectOfType <MazeMgr>();
     blocktext   = GetComponent <Text>();
     nblocks     = 0;
     lost        = false;
     putLocation = new Vector3(-55, -3, 3);
 }
コード例 #3
0
 void Start()
 {
     astro         = GameObject.FindObjectOfType <Player>();
     boss          = GameObject.FindObjectOfType <MazeMgr>();
     b_dude        = GameObject.FindObjectOfType <BlockMgr>();
     startPosition = transform.position;
     origStart     = transform.position;
 }
コード例 #4
0
 void Start()
 {
     boss      = GameObject.FindObjectOfType <MazeMgr>();
     timertext = GetComponent <Text>();
     timer     = GetInitialTime();
 }