void Awake() { pS = this; setNewFloor(1); Screen.lockCursor = true; Cursor.visible = false; }
// 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; }
// Start is called before the first frame update void Awake() { instance = this; }