示例#1
0
 void Awake()
 {
     pS = this;
     setNewFloor(1);
     Screen.lockCursor = true;
     Cursor.visible    = false;
 }
示例#2
0
    // Use this for initialization
    void Start()
    {
        //TODO init pSystem vars (eg shootTimer)
        pSystem = this.GetComponent <playerSystem>();

        //Set top_left and bottom_right to respective places
        top_left.position     = GetComponent <Collider2D>().bounds.center - GetComponent <Collider2D>().bounds.extents;
        bottom_right.position = GetComponent <Collider2D>().bounds.center + GetComponent <Collider2D>().bounds.extents;
    }
示例#3
0
 // Start is called before the first frame update
 void Awake()
 {
     instance = this;
 }